Change application label outside of Manifest.xml

-1

I'm working on a project that will be a template for multiple applications. So far everything is being configured via JSON.

Then the question came up: Is it possible to change this node below outside the manifest.xml, perhaps using inside my MainActivity.class? Something like a setLabel.

<application
    android:allowBackup="true"
    android:icon="@drawable/icon"
    -> android:label="@string/app_name"
    
asked by anonymous 05.08.2014 / 17:11

1 answer

-4

Use the following command within some method within your class that extends the main Activity:

this.setTitle("Novo título");
    
05.08.2014 / 17:19