Application icon does not appear

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, ic_laucher is in the drawable folders.

What can it 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>

Menubar Print

    
asked by anonymous 09.02.2015 / 23:27

1 answer

1

Try this on mainfest.xml . Change the 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 one activity:

getActionBar().setLogo(R.drawable.ic_launcher);
getActionBar().setDisplayShowHomeEnabled(true);
getActionBar().setDisplayUseLogoEnabled(true);
    
10.02.2015 / 20:24