How can I keep the name of my app the same, but change what the title of the main activity is called?
Asked
Active
Viewed 518 times
4 Answers
0
use this
getActionBar().setTitle(title);

Kastriot Dreshaj
- 1,121
- 6
- 16
-
where should i put this? – KrispyKreme Dec 12 '14 at 12:12
-
in onCreate() method or if you are using fragment you need to put getActivity.getActionBar().setTitle(title); – Kastriot Dreshaj Dec 12 '14 at 12:15
0
If you want change the title at compile time you have to use android:label for each Activity on your AndroidManifest.xml. But if you want to change the title at runtime then you have to use getActionBar().setTitle("title");.

Biswajit
- 1,829
- 1
- 18
- 33