Is there a way to get the android lockscreen package name?
I want to show alert on the lockscreen using AlertDialog.Builder. So I need to know when the
AlertDialog.Builder
Really a Simple solution.
KeyguardManager km = (KeyguardManager) getApplicationContext().getSystemService(Context.KEYGUARD_SERVICE); if( km.inKeyguardRestrictedInputMode()) { //it is locked }