简体   繁体   中英

How to lock android home button,recent app button and back button for kiosk mode in android 4.4?

I am trying to lock android default button by using System alert window.its works fine up to android version 4.3 but doesn't works on android 4.4. Please help me

I ran into similar problem before. Using system alert dialogs to avoid user going to home or out of the application was a good idea. I assume that you are trying to do the same.

What I did was, run a background thread that will open up the activity (bring the activity to the front) of your application (if the application is not in front).

Depending upon the need to enable or disable this functionality, you can pause the background thread and start when appropriate, which will save the battery :).

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM