Problem to set application name in android?

The problem with my application is that I could not see the name of my application under the display icon. I used the following code in the manifest file to set the application name and icon for my project.

<application android:icon="@drawable/icon" 
             android:label="@string/app_name"> 

After putting this piece of code in my application, I see an icon, but the application name (application name) does not appear at all. I even checked the string.xml file for the app_name string, and I found that it was there.

I even tried hard tying the application name as shown below,

<application android:icon="@drawable/icon" 
              android:label="app_name">

but to no avail, I don't see my application name. I ran into this problem. can anyone suggest what is happening here and what needs to be done to display the application name or is there any other way to display my application name? Any suggestion on this subject is noticeable.

+3
source share
1 answer

The name you see should be the name of your main action, which has the following intent filter:

<intent-filter . . . >
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

An Android application may contain several startup operations, each with a different name and icon. The name and icon that you define for the application are displayed in the application manager in the phone settings.

+11
source

Source: https://habr.com/ru/post/1770047/


All Articles