Questions tagged [keyguardlock]
31 questions
13
votes
2 answers
Android Google Chrome not firing after lockscreen app
I have a lockscreen app, my activity is the first when the user hits unlock power button. I have a website link on the lockscreen-app. When the pattern-unlock is disabled , chrome gets fired with the the website link. But when I enable the security…

Ankish Jain
- 11,305
- 5
- 36
- 34
9
votes
3 answers
KeyguardManager - requestDismissKeyguard() method alternative for api 25 and below [Android]
I was recently trying to request user to dismiss key-guard manually from my app. My app invokes a activity screen when device is locked and the screen has the flags
FLAG_SHOW_WHEN_LOCKED
FLAG_TURN_SCREEN_ON
When I have to invoke another screen…

Shangeeth Sivan
- 2,150
- 1
- 20
- 20
8
votes
0 answers
disable keyGuard in Android 6.0
I'm pretty new to Android programming. I want to write an intent that keeps my phone unlocked while connected to my home wifi. I've researched quite alot and kept finding the same answers.
This is what I've tried so far.
KeyguardManager…

bume nicläs
- 73
- 4
5
votes
0 answers
On Huawei Android devices with a fingerprint scanner createConfirmDeviceCredentialIntent() does not allow fingerprint unlock
When using KeyguardManager.createConfirmDeviceCredentialIntent() on Huawei device which have a fingerprint scanner (eg. P9), the screen only works with PIN/Password but does not allow unlock with the fingerprint scanner. On most other brands that…

Michael Greifeneder
- 2,900
- 3
- 18
- 19
5
votes
0 answers
Is there a direct event for keyguard lock?
DUPLICATE WARNING: this post IS NOT about screen on/off, this post IS about keyguard lock (those issues are not the same).
Luckily there is a direct event when the keyguard is unlocked, but what about event when the keyguard is locked? I searched…

greenoldman
- 16,895
- 26
- 119
- 185
4
votes
2 answers
Android Keyguard Lock
I am working on an application that will replace the default lock screen (swipe to unlock) for android devices. I have successfully done this by disabling the keyguard manager and showing my activity using the broadcast receiver for screen OFF and…

salman
- 123
- 1
- 8
3
votes
3 answers
Calling requestDismissKeyguard() twice with a delayed result
I'm working on an app that has call capabilities so I need the device to wake up. If the device is locked, I use the following code to unlock it:
keyguardManager.requestDismissKeyguard(this, new KeyguardManager.KeyguardDismissCallback() {
…

The Hungry Androider
- 2,274
- 5
- 27
- 52
3
votes
1 answer
With security keyguard active transition between activities is weird
I have my main activity A and when the user presses a button i open another activity B. But when this happens B doesn't just appear on top of A:
A disappears
secure keyguard shows up
B appears
And when i get rid of B the same thing happens. This…

Sandman
- 2,577
- 2
- 21
- 32
3
votes
0 answers
Find out which keyguard-type a user is using
DevicePolicyManager.lockNow() only works if the user is not using the "Slide"/"None"-lockscreen (on some devices). Thus, I'd like to find out which lockscreen-type (None/Slide/PIN/Pattern/Face-Unlock) the user is currently using. Is this possible…

Nick
- 3,504
- 2
- 39
- 78
3
votes
1 answer
Keyguard Manager not working properly
I am using Keyguard Manager in my activity to unlock the device, but it is behaving strangely. I tested it with two devices, on Nexus its working fine but in samsung Galaxy S, it's not working.
My Code is:
PowerManager pm = (PowerManager)…

Meenal
- 2,879
- 5
- 19
- 43
3
votes
0 answers
Android keyguard lock disabled automatically
I am working on an application that will replace the default lock screen (swipe to unlock) for android devices. I have successfully done this by disabling the keyguard manager and showing my activity using broadcast reciever for screen OFF and…

salman
- 123
- 1
- 8
2
votes
1 answer
Wake up screen and show dialog on Lock Screen
I have an alarm scheduled. Using WakeLock.acquire() and KeyguardLock.disableKeyguard(), I am able to wake the screen up and show my activity. However, I'd prefer to just show a dialog. The built in alarm on my HTC and Samsung devices act this…

Rich
- 36,270
- 31
- 115
- 154
2
votes
1 answer
keyguardManager.createConfirmDeviceCredentialIntent() returns RESULT_CANCELEDon Android Q
I have an application, where I'm requesting user to Authenticate in my app via KeyguardManager using PIN.
The important thing is that I have android:showOnLockScreen="true" to my activity in manifest, so when device is locked, and my activity is…

Hayk Nahapetyan
- 4,452
- 8
- 42
- 61
2
votes
1 answer
How to find out unlock method programmatically?
For the Android OS, I need to find out what the user uses to unlock the device. Be it null, PIN, pattern, fingerprint.

theAnonymous
- 1,701
- 2
- 28
- 62
2
votes
1 answer
Android How to disable pattern lock
I want to disable screen lock. show screen and after dismissing it, i want to lock screen again, for this purpose I am using this code.
after onCreate()
PowerManager pm = (PowerManager) this.getSystemService(Context.POWER_SERVICE);
wakeLock =…

Haris
- 267
- 1
- 2
- 13