Questions tagged [keyguardlock]

31 questions
1
vote
0 answers

Requesting the user password

I have an app, that features a screen which should be protected by for example KeyguardManager.createConfirmDeviceCredentialIntent. This api however, is only available on 21+, I've tried using the KeyguardManager.newKeyguardLock and setting…
user_4685247
  • 2,878
  • 2
  • 17
  • 43
1
vote
0 answers

Any callback or broadcast for keyguard unlock using Smart Lock(Face)?

Smart lock set using trusted face on device. after that, when I turn on screen it is secure lock til face recognition finished. I checked using KeguardManger.isDeviceLocked. it return true when turn on device, and return false after recognition…
1
vote
1 answer

Can't get app to unlock keyboard programatically [None of existing solutions work!]

I have read through about 10-15 posts on Stackoverflow and all of them seem to have answers that resolved the questioner's issues but I can't seem to get those solutions to work for my case. I have an app which allows for setting an alarm and the…
LeoNeo
  • 739
  • 1
  • 9
  • 28
1
vote
1 answer

disableKeyguard not disabling keyguard

I'm using this code to disable keyboard to disable home button . I'm using this in activity where I want the keyguard to be disabled ,so is it necessary that keyguard should be called from service ? If not why keyguard is not getting disabled…
Starksky
  • 41
  • 7
1
vote
2 answers

KeyguardManager fails to unlock kitkat screen

I've noticed very interesting behavior of Android that I cannot explain. I'm using the following code to wake up the phone and disable keyguard: PowerManager.WakeLock mFullWakelock = mPowerManager.newWakeLock( …
NeviQ-OR
  • 305
  • 2
  • 12
1
vote
1 answer

To lock and unlock device using robotium

I'm writing robotium tescases for lockscreen. in order to test it i need to 'Lock' and 'Unlock' device (Clicking on device hardware button). I tried with KEYCODE_POWER, searched for other alternatives,but of no use. Thanks in advance,
1
vote
1 answer

keyguard manager not responding

I am making an app that enables\disables a keyguard but it works only for the first time this activity is called and after that its remains in the state I set for the first time. static boolean k=true; @Override protected void…
jaisonDavis
  • 1,407
  • 2
  • 22
  • 36
1
vote
0 answers

Why Dismiss keyguard is not working in Samsung Galaxy tab?

I have one application which will notify users when any alarm raised on the server, so when alarm comes App will play the beep sound and open the activity, even the device is in sleep mode , it wakes up dismiss the keyguard and display activity with…
piks
  • 1,621
  • 8
  • 32
  • 59
0
votes
0 answers

Android: Difference between UserManager's isUserUnlocked and KeyguardManager's isKeyguardLocked

I am working with Android and I am unsure what exactly UserManager and KeyguardManager do / how they relate with each other. From the Docs: UserManager: isUserUnlocked: On devices with direct boot, a user is unlocked only after they've entered their…
0
votes
1 answer

Customise Keyguard Manager's Credential Screen

Here is the code which shows KeyguardManager's Credential Screen: KeyguardManager km = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); Intent i = km.createConfirmDeviceCredentialIntent("title", "description"); startActivityForResult(i,…
Mangesh
  • 5,491
  • 5
  • 48
  • 71
0
votes
0 answers

Show Activity when screen is locked (with keyguard - pattern, password, etc...)

I'm developing an application which working on backround and in some particular event I have to show the activity even if the screen is locked. So I tried to use flags instead of keyguard and wakelock, but I noticed that is only works when the…
Elior
  • 3,178
  • 6
  • 37
  • 67
0
votes
1 answer

Android 5.0 Lollipop dismiss secure lock keyguard

I have an activity that is correctly shown in front of the keyboard when an alarm goes off. Everything works fine, I set the following…
0
votes
1 answer

Disabled Keyguard Lock and turn screen on and keep it on, in Android programming

i wrote an android alarm program. it work properly in many devices but in some device when the screen in on the alarm activity open and alarm work properly, but in some device it is not work when the screen is off. please help me in write code for…
Muhammad Ali
  • 720
  • 8
  • 21
0
votes
1 answer

Activity Alarm do not turn on screen in Sony Xperia P when alarm played

My alarm program on Android does not work on many Samsung and HTC devices; it does not turn on the screen and does not play alarm until the screen is manually turned on. This problem is in Sony Xperia P and Huawei Honor phone... I use any thing that…
Muhammad Ali
  • 720
  • 8
  • 21
0
votes
0 answers

Not able to lock android phone programmatically

I have been trying to lock my phone programmatically when some particular condition is met. In my case a for loop which loops for 10 times. Here's what I am doing to lock my phone private DevicePolicyManager mDevicePolicyManager; private…
ik024
  • 3,566
  • 7
  • 38
  • 61