android - Screen pinning by startLockTask -


i'm building android 5.1 app , have found useful method startlocktask enter kiosk mode. works well. have 2 small problems, afterwards should perfect.

when in kiosk mode (startlocktask called) messages printed telling how exit kiosk mode (when navigation bar tapped). don't want such messages. how can disable that?

second, unfortunately power button not blocked. there possibility lock power button (so power button has no functionality anymore)?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -