Robert
Robert

Reputation: 1726

Android - how to set app name dynamically

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

Answers (1)

Yugandhar Babu
Yugandhar Babu

Reputation: 10349

Call below code to change the title displaying on Title bar.

setTitle("New Title");

Upvotes: 7

Related Questions