Hello!
I want to translate app name (a different app name for each language). So I created the folder "res\values-en\string.xml" and I added "<string name="app_name">Hello</string>" for each language. I also added "SetApplicationAttribute(android:label,"@string/app_name")" to manifest editor.
Once I install the app I can see the message "Do you want to install "Hello"?" on my phone where "hello" is changed to "Bonjour" when I change android language to French.
At this point all seems to work great but once the app is installed to phone I see the icon has the name "B4A Example" instead of "Hello" or "Bonjour". So I edited AndroidManifest.xml and I changed:
to:
and now all it works but I need to set the file AndroidManifest.xml to "read only" because every time I compile the app it changes line "android:label="@string/app_name"" to "android:label="B4A Example""
I think the icon on phone is getting the "android:label" from main activity instead of app name.
Is this the correct way to get the app icon name?
Thanks!
I want to translate app name (a different app name for each language). So I created the folder "res\values-en\string.xml" and I added "<string name="app_name">Hello</string>" for each language. I also added "SetApplicationAttribute(android:label,"@string/app_name")" to manifest editor.
Once I install the app I can see the message "Do you want to install "Hello"?" on my phone where "hello" is changed to "Bonjour" when I change android language to French.
At this point all seems to work great but once the app is installed to phone I see the icon has the name "B4A Example" instead of "Hello" or "Bonjour". So I edited AndroidManifest.xml and I changed:
B4X:
android:name=".main"
android:label="B4A Example"
to:
B4X:
android:name=".main"
android:label="@string/app_name"
and now all it works but I need to set the file AndroidManifest.xml to "read only" because every time I compile the app it changes line "android:label="@string/app_name"" to "android:label="B4A Example""
I think the icon on phone is getting the "android:label" from main activity instead of app name.
Is this the correct way to get the app icon name?
Thanks!