In my AndroidManifest.xml application, I try to tell him to use the line from /res/values in a specific package instead of the first one found in one of the libraries (the my_label line can be defined in more than one library):
<application android:icon="@drawable/icon" android:label="com.example.projname.appmodule:@string/my_label">
However, the above notation / syntax does not work. It takes only the following form, which does not allow pin-pointing to a specific resource file:
<application android:icon="@drawable/icon" android:label="@string/my_label">
Is it possible to tell Application AndroidManifest.xml the @string value from a specific /res/values ?
EDIT: Interestingly, the build environment does not complain at all about the syntax "com.example.projname.appmodule:@string/my_label" . But when the application starts, it displays com.example.projname.appmodule:@string/my_label instead of a string value.
As @Nikola Despotoski explained below, the workaround can be set programmatically in the application, but since the build environment does not complain about this syntax, I am still wondering if this is an error in the env assembly or something that I was missing.
My workaround is for now, to make sure my_label is unique, for example. my_3F2504E0-4F89-11D3-9A0C-0305E82C3301_label so that it does not appear in any other package.
source share