How can I change application label to change app name shown from java code in android? I'm refering to:
<application android:icon="@drawable/icon" android:label="@string/app_name">
in the Android Manifest
Is there any way to update values in strings.xml file?
It's not possible by the moment. It is a fixed string in the AndroidManifest. xml file which cannot be changed at runtime.
Go to the app > manifests > AndroidManifest. xml file and change the android:label field in your application node in AndroidManifest.
Select Android on the top left of the Project window. So, right click over your package name under Java folder and select "Refactor" -> Rename... Click in Rename Package Button. Type the name of the new package you want, mark all options then confirm.
in the activity, i tried
this.setTitle("your text");
and it worked. I hope it's a common solution
It's not possible by the moment. It is a fixed string in the AndroidManifest.xml file which cannot be changed at runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With