Application icon does not appear

Asked

Viewed 1,749 times

4

I’m making an application, but when I install it on my phone, the icon does not appear. I have no idea what it might be, the ic_laucher is there in the drawable folders.

What can be?

Manifest

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.myfirstapp.MainActivity" />

    </activity>
    <activity
        android:name=".TelaInicial"
        android:label="@string/title_activity_tela_inicial" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Print of the menubar

inserir a descrição da imagem aqui

  • Like this your Manifest?

  • updated with the manifest

  • I would recommend removing the attribute logo of Activity, because the very logo of application already works.

  • even without appearing

  • Remove android:icon="@drawable/ic_launcher" from the bottom and test.

  • Could you show the style ? could be that you have extended some style that does not have the logo or some configuration overwrites it.

  • You want your icon to appear where?

Show 2 more comments

1 answer

2


Try this on the mainfest.xml. Change image name to 'appicon':

<application android:icon="@drawable/appicon" android:label="@string/app_name"
android:name="com.droid.MEUAPP">

...

Or this, with support for appcompat-v7 action bar, in an activity:

getActionBar().setLogo(R.drawable.ic_launcher);
getActionBar().setDisplayShowHomeEnabled(true);
getActionBar().setDisplayUseLogoEnabled(true);
  • minSdkVersion 9 targetSdkVersion 21

  • getSupportActionBar().setLogo(R.drawable.ic_launcher);&#xA; getSupportActionBar().setDisplayShowHomeEnabled(true);&#xA; getSupportActionBar().setDisplayUseLogoEnabled(true);so appears the most very large icon and only on the screen that put this code

  • Print out your bar menu. I think you moved something and removed it from the default SDK version.

  • And depending on the device, the icon will not appear, because it depends on the version of the android in question.

  • more other apps I’ve done and the ones I use on this phone appear the icone , print this up there

  • I edited the answer.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.