tags:

views:

18

answers:

1

how can we lock the current state of settings like wifi,gps,bluetooth,vibration,etc...after clicking on button1.and it should be unlock when button2 is pressed.

A: 

I don't know it that is possible, since if another app is running in the background or started it will get the control of the devices. Therefore I could be hard to know if it actually is locked.

Every app is added to the stack (of running apps), and the highest in the stack will probably have the rights to modify the devices of it's choice.

Andreas Mattisson