Android App Name Not Being Displayed
My Android app is not displaying the application name 'app_name', instead its displaying the activity name 'title'. This is from my manifest file;
<intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter>
so application label is of no use.
Solution 2:
You can only display one label at a time. Application label or Activity label.
If you set a label and run an activity, you will see the Activity label.
To see Application label, doesn't set android:label="@string/title"
on Main activity.
Solution 3:
I have the same problem, solution for me:
on MainActivity.java change:
publicclassMainActivityextendsActivity {...}
for
publicclassMainActivityextendsAppCompatActivity {...}
Solution 4:
You can just set your launcher activitys label as the app name and then set the actionBar title manually in code for that activity
getSupportActionBar().setTitle(R.string.title_user_login);
This is of course if you are using an action bar. Normal activity title headings are ugly anyway!
EDIT: saying that you can see the text change on start up!
Solution 5:
Even I noticed the same and seems that is a bug! You should report it to google :)
Post a Comment for "Android App Name Not Being Displayed"