Android App Development
Showing posts with label
Lock
.
Show all posts
Showing posts with label
Lock
.
Show all posts
Saturday, 6 April 2013
Android Devices-How to lock the screen in an Android app?
Remember you need to give permissions for it:
KeyguardManager
keyguardManager
=
(
KeyguardManager
)
getSystemService
(
Activity
.
KEYGUARD_SERVICE
);
KeyguardLock
lock
=
keyguardManager
.
newKeyguardLock
(
KEYGUARD_SERVICE
);
lock
.
disableKeyguard
();
Older Posts
Home
Subscribe to:
Posts (Atom)
Disqus for Android