I added applicationIdSuffixfor each type of assembly in gradle to be able to have every type of assembly installed on the same device at the same time. I also have different string resources for each type of assembly, which means that for each type of assembly there may be a string resource "app_name". For example, My App, My App (beta), My App (debug)). I use the android:label="app_name"on element <application>in the on and on element AndroidManifest.xml, which gave me the perfect setting: in the launcher, each type of assembly received its own unique launcher but the title in the Toolbar was the same (without a unique resource for ).android:label="app_title"<activity>android:label="app_name"<intent-filter>app_title
But running the same application with multiple build types on Nokia Nougat phones (and emulators) gives the same launch name. I can have it installed at the same time, but the application startup header is the same ... Any idea how to solve this problem on Nougat devices? He works on Marshmallows and below.
Update 1:
I can not get it to work. Let me share some code:
<application
...
android:label="@string/launcher_name">
<a... android:name=".MainActivity"
android:label="@string/app_name">
<i...
android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</i...>
</a...>
</app...>
/debug/res/values/strings.xml contains launcher_name = "My app -D" But the launch label is My application when working in AS on emu.
Update 2:
Filed an error on Android.com. http://code.google.com/p/android/issues/detail?id=223706
BR, J
source
share