I need my app to be in kiosk mode on demand (user clicks lock\unlock buttons for example)
I am using next methods which works fine :
In android, invoking the "StartLockTask" displays next dialog (text can be a little bit different) : "Pin this screen to only this app?" Cancel \ Pin
How can I know if user clicked on Pin or Cancel ? or how can i know that the app is indeed in kiosk mode?