Can't change the name of an activity

3118 views android
10

Tried everything i could find on internet but cant seem to find a way to change the name of an Activity. When i test it it just shows the application name.

AndroidManifest

answered question

1 Answer

13

In your manifest, try android:label attribute:

<activity android:name=".MainActivity"
          android:label="your_activity_readable_name">

According to android:label, if the attribute is not set, the label set for the application as a whole is used instead.

posted this

Have an answer?

JD

Please login first before posting an answer.