Reputation: 1726
Is there a way to set the name of my app dynamically? I've got an app that connects to a web service to get some data (application name, DBName, DBVersion, etc.) and I want to be able to set the name of the app to whatever the web service returns. I tried:
R.string.app_name = "New App Name";
but app_name is an integer, not a string.
Any ideas?
Upvotes: 1
Views: 2673
Reputation: 10349
Call below code to change the title displaying on Title bar.
setTitle("New Title");
Upvotes: 7