Android Application Name Appears as Activity Name

前端 未结 6 2021
长发绾君心
长发绾君心 2020-12-15 17:27

I have reviewed the manifest for application, and under apps launcher it displays as Activity Name rather than its app name? Why is this. I have another application where w

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 18:06

    The above accepted answer is wrong. It says,

    the name comes from the android:label attribute on the application tag

    That's not true. Take the following code for example.

    
         
             
             
             
         
    
    

    In this code, the app name that shows in the launcher is set by the android:label attribute in the activity tag not the application tag as the above accepted answer says.

    To correct the above accepted response, the name shown under the icon in the launcher comes from the android:label attribute in the entry point activity's activity tag (the activity tag that contains the DEFAULT and LAUNCHER categories) unless you don't specify it there in which case it comes from the android:label attribute on the application tag.

    Your first issue can be solved by changing the android:label attribute in your entry point activity's tag.

提交回复
热议问题