![]() |
2011-06-18
, 15:00
|
|
Posts: 472 |
Thanked: 195 times |
Joined on Jun 2010
@ India, Mumbai
|
#2
|
Hi,
I'm trying to write an application that in some state needs to lock the phone. The application runs fullscreen and the user should only be able to reactivate the phone by a predefined PIN.
If the user presses the power button he can easily kill my application with "end current task" or he uses "Ctrl-Backspace" to activate the Taskmanager and kill the task then :/
Is there a way with python to disable both possibilities temporarily?
![]() |
2011-06-18
, 15:15
|
Posts: 104 |
Thanked: 48 times |
Joined on Jul 2010
@ Romania
|
#3
|
![]() |
2011-06-18
, 15:28
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#4
|
pkill -STOP systemui
pkill -CONT systemui
The Following User Says Thank You to laasonen For This Useful Post: | ||
![]() |
2011-06-18
, 15:35
|
|
Posts: 141 |
Thanked: 267 times |
Joined on May 2010
@ Germany
|
#5
|
![]() |
2011-06-18
, 15:45
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#6
|
Great, works for me!
Thank you for this short solution!
Remains the task swichter problem?!
The Following 2 Users Say Thank You to laasonen For This Useful Post: | ||
I'm trying to write an application that in some state needs to lock the phone. The application runs fullscreen and the user should only be able to reactivate the phone by a predefined PIN.
If the user presses the power button he can easily kill my application with "end current task" or he uses "Ctrl-Backspace" to activate the Taskmanager and kill the task then :/
Is there a way with python to disable both possibilities temporarily?