14

It doesn't seem possible, but I was hoping someone may be aware of a way. Can the label of the application (the one defined in the manifest file by android:label="@string/app_name") be set from code?

ab11
  • 19,770
  • 42
  • 120
  • 207

3 Answers3

29

That is read-only, AFAIK.

If your objective is to change the title bar of your activities, you can call setTitle().

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
2

I mostly use this to change actionBar's text pragmatically in onCreate() method....very easy!

getSupportActionBar().setTitle("yourString");
Zohab Ali
  • 8,426
  • 4
  • 55
  • 63
0

I used:

this.setTitle("YourString");
Dror
  • 5,107
  • 3
  • 27
  • 45