Code example for KeyguardManager.KeyguardLock

Methods: reenableKeyguard

0
	public void onDestroy() { 
		super.onDestroy(); 
		if (m_telephonyManager != null)
			m_telephonyManager.listen(listener, PhoneStateListener.LISTEN_NONE);
		if (myLock != null)
			myLock.reenableKeyguard();
	} 
 
	class MyPhoneStateListener extends PhoneStateListener {
		private Context context;
 
		public MyPhoneStateListener(Context c) {
			context = c;
		} 
 
		public void onCallStateChanged(int state, String incomingNumber) {
			// m_audioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); 
			switch (state) {
			case TelephonyManager.CALL_STATE_IDLE:
				// m_audioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL); 
				break;