Reputation: 2254
I'm using the xml string and which comes by default "app_name" in the android, but when I use it shows me wrong, it shows me the package name.
This is my definition in the code:
<string name="app_name">App's Name</string>
And in the Manifest.xml:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme" >
But in the Android show me the app name how "br.com.enterprise.app"
(I can't post image because this is my first post)
A another thing that happens is when I install the app in another smartphone it show a error message and close, I think that the cause is from the same reason.
Upvotes: 0
Views: 2438
Reputation: 882
To fix the app's name problem, add the Label property to link the String app_name to the application's name.
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
android:label="@string/app_name">
Upvotes: 0
Reputation: 508
You need to refer the app name in application tag like this,
<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme" >
Thanks!
Upvotes: 3