App runs in the emulator but no icon appears

1

I'm creating an Android app using Android Studio. The application works normally when I run in the emulator of the android, but neither in the emulator nor when I generate an apk and install in the mobile the icon does not appear, for example, if I close the application in the emulator and want to execute again I have run the "Run "in Android Studio to launch the application, and when installed on the mobile installs normally but after install does not enable the open option and the icon does not appear in the menu.

Does anyone know what it could be?

Below AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="educanimais.euphoria.com.br.educanimais" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_tucano"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

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

        <activity
            android:name=".splash"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/FullscreenTheme" >

        </activity>

        <activity
            android:name=".splashapp"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@style/FullscreenTheme" >
        </activity>
    </application>

</manifest>
    
asked by anonymous 03.09.2015 / 00:16

1 answer

1

In order for your app to have your icon in the applications area, you must have an Activity declared with a intent-filter in AndroidManifest.xml that, in addition to an action "android.intent.action.MAIN" , have the category "android.intent.category.LAUNCHER" .

Change the part of the MainActivity declaration to:

<activity
    android:name=".MainActivity"
    android:label="@string/app_name" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>
    
03.09.2015 / 22:49