Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean dettachLockScreenView() {
- if (null != mWindowManager && null != mLockscreenView && isAttachedToWindow())
- {
- mWindowManager.removeView(mLockscreenView);
- mLockscreenView = null;
- mWindowManager = null;
- stopSelf(mServiceStartId);
- Intent enter_pin=new Intent(mContext,com.github.mugku.lockscreensample.Enter_pin.class);
- enter_pin.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- startActivity(enter_pin);
- return true;
- }
- else
- {
- return false;
- }
- }
- if (null != mWindowManager && null != mLockscreenView && isAttachedToWindow())
- {
- mWindowManager.removeView(mLockscreenView);
- mLockscreenView = null;
- mWindowManager = null;
- stopSelf(mServiceStartId);
- Intent enter_pin=new Intent(mContext,com.github.mugku.lockscreensample.Enter_pin.class);
- enter_pin.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- startActivity(enter_pin);
- return true;
- }
- else
- {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment