Search code examples
androidlockscreen

Switch to LockScreen


My application has a function that requires to return to LockScreen after pushing a button. Is there any way to switch to LockScreen automatically? Thanks.


Solution

  • Finally, I can recall LockScreen by calling recreateMe() call back function in KeyguardStatusViewManager

    mCallback.recreateMe(null);