2011-09-06 75 views

回答

0

这将帮助你::

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

For more description

+0

感谢您的回复,它正在执行但我需要锁定整个设备像https://market.android.com/details?id=com.droidman ia.lockscreenwidget&feature = search_result – sukesh

+1

将此代码投入使用并启动它的启动时间,因此当您启动手机时,首先执行此部分并显示锁定 –