2011-09-06 61 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

將此代碼投入使用並啓動它的啓動時間,因此當您啓動手機時,首先執行此部分並顯示鎖定 –