-1

I am just creating my custom launcher application and As I come to know below changes are required to make simple launcher in AndroidManifest file.

Lookout :

 <activity
        android:name=".HomeActivity"
        android:launchMode="singleTask"
        android:stateNotNeeded="true"
        android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.HOME" />
            <category android:name="android.intent.category.DEFAULT" />
            <!-- <category android:name="android.intent.category.LAUNCHER" /> -->
        </intent-filter>
    </activity>
    <activity
        android:name=".AppsListActivity"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>

Since there is no line like : <category android:name="android.intent.category.LAUNCHER" />, I can not install the app. Android studio giving me "error in installing application".

What might be the solution ? Thanks.

Dima Kozhevin
  • 3,602
  • 9
  • 39
  • 52
Mashuk Khan
  • 67
  • 11
  • try installing your app manually to your phone and then press the home button. Your app should be visible in the selection box for choosing launcher – Vivek Mishra Oct 27 '17 at 13:20

1 Answers1

1

This is how your <intent-filter> should look like

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.HOME" />
</intent-filter>
Akshay Katariya
  • 1,464
  • 9
  • 20