This mobile phone feature allows the user to disable (lock) the keys so that a number will not accidentally be dialed while the phone is in your pocket or purse. A special key combination, unlikely to be pressed accidentally, is typically used to unlock the keys.
Questions tagged [keyguard]
147 questions
2
votes
1 answer
Determine if Pin, Password or Pattern Used at Android Phone Log On
I'm trying to determine if a password, pin number or pattern is required when logging onto your android smart phone. I can determine if a phone uses a pattern at log on, and I can determine if a password/pin number is used at log on, but how can I…

pHorseSpec
- 1,246
- 5
- 19
- 48
2
votes
0 answers
If there any way to unlock the keyguard using Intent objects
I am now trying to call Context.StartActivity(intent) on Android 5.0 device when the screen is locked (not secure lock) and I need to unlock the screen first.
I've learned to use some widow features in the target activity, but now I just want to…

Glorin
- 160
- 2
- 7
2
votes
1 answer
Widget LockScreen issue
I create a keyguard widget that has a button that upsate textview with Random number when clicking. it works properly on the home screen but on the lock screen (android 4.2.2) it(s button) works just when i add it to my lock screen widgets but when…

Abdullah AlHazmy
- 1,299
- 1
- 13
- 22
2
votes
1 answer
Could not re-enable the KeyGaurd once disabled it
I have write below code to toggle the KeyGaurd of my android phone using a toggle button. but I am facing an strange behavior.
it disables the keygaurd successfully but. not re-enabling.
btnToggleLock.setOnClickListener(new OnClickListener() {
…

Qadir Hussain
- 8,721
- 13
- 89
- 124
2
votes
1 answer
Activity in front of Lockscreen
I want to create an activity in front of the lockscreen. I don't want to skip the keyguard completely. I tryed it with the TYPE_SYSTEM_OVERLAY flag but there I can't handel any events. It works with FLAG_SHOW_WHEN_LOCKED but then there is a black…

Cilenco
- 6,951
- 17
- 72
- 152
2
votes
1 answer
How to track activity visibilty considering dialogs and system windows?
A task: I should track visibility of whole Android application and generate events when it goes to background or foreground. First part of the task is completed: I have special global counter which I increment in Activity onStart() and decrement in…

QuickNick
- 1,921
- 2
- 15
- 30
2
votes
0 answers
Android FLAG_DISMISS_KEYGUARD turns screen off
I have an activity that dismisses the key guard when it receives a screen_on intent. However the screen always turns back off almost immediately after the dismiss key guard flag. If this the intended behavior?

kevdliu
- 1,709
- 4
- 29
- 46
2
votes
0 answers
Android amazon mp3 keyguard controls
Anyone have an idea how the Amazon mp3 app is displaying the player controls inside of the keyguard? I've been playing with some of the system alert and system overlay window parameters with now luck. The system alert will display over everything…

atomicbaum
- 311
- 1
- 3
- 6
2
votes
1 answer
android - total replacement of the lock screen for root device
suppose i make an app only for root devices , which will allow to replace the lock screen (the screen that appears when the device's screen is being awaken) .
i know that there are ways to do so without root , but they are all considered a…

android developer
- 114,585
- 152
- 739
- 1,270
1
vote
1 answer
Show Toast while keyguard is active?
My service receives some notification which might happen while the keyguard is active. Is there some way to show a Toast message in this state? First attempts showed that the Toast is shown "behind" the keyguard (i.e. it is visible if the keyguard…

Martin C.
- 12,140
- 7
- 40
- 52
1
vote
1 answer
Check if a device has a lock method configured via React Native
Problem
We have to check whether a mobile phone / tablet has any locking functionality (PIN, Pattern, Biometrics, ...) enabled. If nothing was set, then the app shouldn't run.
Is there any way to do this via React Native? I have found - on Android -…

Gh05d
- 7,923
- 7
- 33
- 64
1
vote
1 answer
Can't get my Activity in front of the lock screen
I want to put my activity in front of the lock screen. I added whatever I saw on the internet as a flag to print activity on the lock screen.
But on some devices I couldn't achieve this : Huawei, Xiaomi etc
public class MyActivity extends…

propoLis
- 1,229
- 1
- 14
- 48
1
vote
0 answers
How is alarm snooze/stop activity loaded in Android 10 if we cannot load activity from BroadcastReceiver in Android 10
In Android 10 there was no provision to launch an activity from a background service like BroadcastReceiver. I am curious to understand how android's default alarm application is loading a snooze/stop activity from the background service. I am…

Ram Keerthy
- 227
- 4
- 16
1
vote
0 answers
keyguardmanager createConfirmDeviceCredentialIntent is showing on device lock screen
I'm using android native keyguardmanager class. I'm calling createConfirmDeviceCredentialIntent() in onresume everytime.
Open Activity > Lock the device > Unlock the device > lock it quickly. keyguardmanager window is showing on device lock screen.…

cooldev
- 419
- 1
- 4
- 13
1
vote
0 answers
Android Face unlock option not showing in KeyguardManager.createConfirmDeviceCredentialIntent()
I have used keyguard manager unlock page to open my application. Currently, I have used following implicit intent to launch android unlock page.
KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
Intent i =…

vijayakumar g
- 69
- 1
- 8