I need to disable the use of the physical button on the Android device (preferably versions greater than 4.0). With surveys I found some solutions like for example removing the actionbar, leaving the application in fullscreen. I need to use the actionbar. I found a not very good solution, which uses the following tags in the manifest:
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.MONKEY"/>
With this popup asks what action I want to use, Initial Screen of the device or call my application. When selecting my application, a new instance of the application is created ...
In short, I need to block the activation / use of the physical home button of the device within the application. I can not remove the actionbar, I can not start new instance of the application, and I can not block the back button (physical back button).