0

How can I change the app name when installing? Once installed my app name on the icon is correct and everything else is in place.

Thanks in advance

Edit: Sorry I'm not being clear. I started a project with the app name as Simple Counter but now it's something else. When I build the APK and install it the name appears as Counting App.

enter image description here

2 Answers2

1

In the AndroidManifest.xml, there should be an <application> tag with a android:name attribute. This is where you set the name which appears below the icon in the device's launcher. You will also see that each <activity> tag has a android:label attribute. This is the text which is shown in the tool bar when that activity is active. Both of these attributes can be set using a string resource. This allows you to make a single change to your code in order to update both places where the string is displayed. It also allows you to provide translations in other languages.

If you make these changes and they still stay the same when you run your app from Android Studio, you should turn off Instant Run.

Code-Apprentice
  • 69,701
  • 17
  • 115
  • 226
0

For this, uninstall your application from your device, after that clean all caches files. Then try to install the application again.

Daniel Beltrami
  • 571
  • 6
  • 16