Is it possible to hide/disable Device home key for Screen lock application. I tired to create a sample screen lock application, i did the following testing process,
- Device screen is off
- Clicked search button - Lock screen will appear and nothing will happened
- Clicked Back button - Lock screen will appear and nothing will happened
- Clicked Menu button - Lock screen will appear and nothing will happened
- Clicked Home Button - Lock screen will removed and redirect to device home page.
In my manifest.xml is,
<activity
android:name=".SampleLock"
android:excludeFromRecents="true"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:persistent="true"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.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.MONKEY" /> -->
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Guys any idea to resolve this issue?