Messages
There can be multiple applications on a connected Android device. The Android Logcat window can display messages from:
- Every application running on the device.
- A specific application running on the device.
By default, the Android Logcat window displays message from every application on the connected Android device. This page explains how to configure the Android Logcat window to only display message from a specific application.
If you want to view messages for a specific application, you can either:
- Select an application running on the Android device.
- Use Auto Run to automatically connect to and view messages for applications that you build and run.
Select an application
To select an application to view messages for:
- Connect and select the Android device that is running the application.
- Open the Android Logcat window.
- From the toolbar, select the Package Selector. The Package Selector contains:
- The application for the top activity currently running on the selected device.
- The application built from your Unity Project, if its running on the selected device. It doesn't need to be the top running activity.
- In the drop-down menu, select the application to connect to. After you do this, the Android Logcat window displays messages for the selected application.
Important
Android Logcat uses the applicationIdentifier Player Setting to identify Unity applications. If you build a Unity application with one applicationIdentifier
and change it in your Unity Project, Android Logcat can't identify the application on the Android Device if the application is running in the background.
Use auto run
If you want to connect the Android Logcat window to your application whenever you build and run the application, enable Auto Run. To do this:
- Open the Android Logcat window.
- From the toolbar, select Auto Run.
- Open Android Build settings, and Build and run your application. When the application starts on the Android device, the Android Logcat window automatically connects to the application and displays the message log for it.