C
C
chrooter2015-04-03 00:42:57
Android
chrooter, 2015-04-03 00:42:57

How to correctly make your application a launcher?

Who did it and how did it go?
We turn on the device and work only with my application. Kiosk mode.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2015-04-03
@opium

Add two categories to intent-filter manifest

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.HOME" />

and also set launchMode to singleInstance,
you should get something like this
<activity
            android:name=".LauncherActivity"
            android:enabled="false"
            android:launchMode="singleInstance">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.HOME" />
            </intent-filter>
            <meta-data android:name="android.app.home.alternate"
                android:value="ANOTHER_APP_PACKAGE" />
        </activity>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question