Please see the picture.
I don't know how to add my app name on "now playing screen" of Android Auto. It shows just "Unknown" instead of my app name.
Does it require to change any label in manifest?
Please advise.
Please see the picture.
I don't know how to add my app name on "now playing screen" of Android Auto. It shows just "Unknown" instead of my app name.
Does it require to change any label in manifest?
Please advise.
In your AndroidManifest.xml, add android:label="AppName" in the application tag as follows:
<application
android:allowBackup="true"
android:icon="@mipmap/logo"
android:label="AppName"
android:theme="@style/AppTheme" >
Or if you want the label only for a specific activity, you can also add the android:label="AppName"* in the activity tag of AndroidManifest.xml as follows:
<activity
android:label="Activity Title Name"
android:name=".ActivityFileName" >
</activity>
Reference : https://developer.android.com/guide/topics/manifest/application-element.html android:label : A user-readable label for the application as a whole, and a default label for each of the application's components.
The label should be set as a reference to a string resource, so that it can be localized like other strings in the user interface. However, as a convenience while you're developing the application, it can also be set as a raw string.
try this
write this in your activity file
getSupportActionBar().setTitle("app name");