-2

first, i ran my project it didn't because of leak of storage problem . so i freed some space then it went well , but no launcher icon appears on my desktop

    <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".Start"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

        </intent-filter>
        <intent-filter>
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    </activity>
    <activity
        android:name=".SongsList"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity android:name=".FirstSong"
        android:theme="@style/AppTheme.NoActionBar"></activity>
</application>

........

these're the lines that do the work

Dr Mido
  • 2,414
  • 4
  • 32
  • 72
Ali K.
  • 7
  • 4

2 Answers2

0

Refer here for more details. Or Create a valid icon using this

Also check your Intent Filter.

 <activity
    android:name=".Start"
    android:theme="@style/AppTheme.NoActionBar">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
DEXTOR_ANTONY
  • 300
  • 1
  • 12
0
<intent-filter>
    <action android:name="android.intent.action.MAIN" />
</intent-filter>
<intent-filter>
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

You should use a single intent filter with action and category inside it, instead of two splitted intent filter, that is

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Geno Chen
  • 4,916
  • 6
  • 21
  • 39