开发者

Lock the screen in android [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

how to programmaticaly lock screen android

Hie team gud eve, I have tried using keygaurdmanager its executing, but what i need is when i click on the application the screen should be locked immediately. can any one suggest me how its possible..

Like: Loc开发者_Go百科k app in android market

Thanks in Advance


This will help you ::

KeyguardManager mgr = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE); 
KeyguardLock lock = mgr.newKeyguardLock(KEYGUARD_SERVICE); 
lock.reenableKeyguard();

For more description

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜