Question

i just wanna start any simple app in a kiosk mode, that is whenever i reboot i want only the app to be started nothing else. So researching a bit i found home replacement app, and disabling the home, menu search and back button. i tried some links about home replacement, but couldnt succeed. so please help if anyone can. thanks I tried changing the intent filter with this..ando

Was it helpful?

Solution 2

The simplest method is to make your app a launcher. Therefore as soon as the device loads or the users presses the home button your app will be shown.

You would need to add the following to your Android Manifest for your main activity that you want to be shown at startup/home key press

<activity android:name=".MainActivity"
            ...
            android:launchMode="singleInstance"
            android:stateNotNeeded="true">
    <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.HOME"/>
            <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>

Hope this helps

OTHER TIPS

Make your own app a kiosk is complicated to make it work correctly in all android versions.

I've been using solutions like Surelock in a couple of apps that run on preconfigured devices.

Surelock

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top