Lock dropdown menu in Android

We have an industrial application running on Samsung Android devices. Since this is an industrial application, we are trying to get it to "take over" the device. This works very well for us by setting in the manifest

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


and intercepting "back" the Android key via onBackPressed and doing nothing.

Our other mystery is that the Samsung UI layer, "Touch Wiz", has a drop-down menu that the user can drag out on top of our app and access other features. We are trying to disable this.

Is there something we can intercept the way we did the back button to block it? Any other way to block it?

(if someone suggests to "root" the device, what can I do as root that will help here?)

Thanks in advance!


source to share

2 answers

Which Samsung device are you working with?

and the dropdown menu are you talking about the notification bar?

Notification Bar

If it's not a UI feature specific to TouchWiz, they might change what you can get to from the extended notification bar. But this item also exists in android stock.

If that's what you're talking about, you can set the full_screen flag for your actions or app elements in the manifest. This will hide the notification bar in your app.





If this doesn't work with home app full screen:

Stock Android has no way to do real kiosk mode and I think it is not Android's goal to allow that as you could do evil things with apps like this that make you pay money before you can leave them again ...

Root also won't help here in regards to basic Linux, which allows you to access internal files, etc. This doesn't reveal some of the magic hidden APIs.

What you need to do is create custom firmware for the device (there may be something for the device - see http://forum.xda-developers.com/ ). In this firmware, you can change those internal elements that allow users to avoid your application.



All Articles