A screen lock is a software feature that keeps users from accidentally sending input to a device. For iPhone, there's "Slide to Lock" and for Android there are many variations. The point of a screen lock is for the device to be sure that the user is consciously interacting with the device as opposed to, for example, pocket-dialing. Similar to a key guard. They can also provide an extra layer of security by asking for a pin or a gesture.
Questions tagged [screen-lock]
136 questions
4
votes
3 answers
avplayer doesn't pause when clicked on pause button if screen is locked
If the app is playing the audio and phone screen is locked then control screen is shown as below. I am not able to take any action on avplayer
In my appdelegate I implemented:
- (BOOL)application:(UIApplication *)application…

A_G
- 2,260
- 3
- 23
- 56
4
votes
1 answer
How to prevent Screen lock ios with Qt
I want to develop an app in Qt for iOS that contains a map. During the use, the screen lock of the phone should be disabled.
But I can't find any solution how to prevent the screen lock in iOS using Qt.
How can be done that?

Martin Bischof
- 115
- 1
- 6
4
votes
2 answers
How to SET and UNSET lock screen password in Android programatically
I want to set lock screen password programatically and then remove when the loop is executed. I have added Device Administration successfully, can someone help me to SET and UNSET lock screen password from my application itself. Below is my working…

user45678
- 1,504
- 6
- 29
- 58
4
votes
1 answer
Android - Password Protected Device Admin Disablement
so here's the problem:
I'm trying to create a Device Admin app where when the user attempts to disable the admin functionality of the app, he is prompted for a password, and if he fails to input the correct password, the app keeps admin privileges. …

Garrison_Laforge
- 137
- 2
- 10
4
votes
0 answers
Switch between screen locks programmatically
I would like to know if it is possible to switch between different screen locks (i.e. swipe lock and pattern lock) programmatically in Android.
I am working on an application based in security contexts. Depending on contexts defined by the user,…

lau.tlk
- 51
- 2
4
votes
1 answer
How to keep my app running on Android when I lock the screen?
I'm developing an Android app. How can I make the app not to be killed when I lock the screen, so that when I unlock the phone, my app is there ready for use?
Just like games. when I unlock the screen the game is still live.

user1539362
- 53
- 1
- 1
- 3
3
votes
0 answers
xfce Power Manager not running xflock4 correctly
I'm having some problems getting the XFCE Power Manager to lock using physlock. When I set the Lock Screen on Lid Close action, upon opening my laptop lid I'm presented with an alternate lock screen, and after entering my password I get the error…

Soundscape
- 319
- 1
- 12
3
votes
0 answers
Callback on change Screen lock
I need some advice about Screen lock on Android.
Does android sent some intent when user change Screen lock?
Or I need poll KeyguardManager.isDeviceSecured in Service?
Google pay send a notification when user remove Screen lock, i need exactly the…

aTable
- 73
- 1
- 4
3
votes
0 answers
What happens at Screen Lock?
I am working with Camera API to develop an android app. I use flash in this app and I need it to be ON all the time. I managed to turn flash ON at start, and after onResume() is called, but I can't figure out what to do after a screen lock. When I…

Chris
- 6,105
- 6
- 38
- 55
3
votes
1 answer
Programmatically changing ScreenLock mode from "Slide" to "Pattern" Android
I was able to implement locking and unlocking of Screen-Lock programmatically. But I was wondering if its possible to change the mode of Screen-Lock say from 'slide' to 'pattern' or 'password' programmatically.
I searched the net but could'nt find…

ik024
- 3,566
- 7
- 38
- 61
3
votes
1 answer
AlarmManager do not work when screen is locked on Android v4
I can't get AlarmManager to work when screen is locked. The app works just fine on my Sony Ericsson Xperia Active with Android 2.3.4, regardless of if the screen is locked or not. I always see the debug message onReceive() in LogCat. But when I try…

mrelemji
- 31
- 3
3
votes
1 answer
Show Activity When Screen is locked like "Viber", "Line" appliaction
As you know, in applications like "Viber", "Line" and ..., when new message receive by device, new activity, will popup-up and show the message to user, even the screen is locked but the lock-screen won't dismiss. This is happening even in "Xperia…

Hazhir
- 4,464
- 2
- 16
- 13
3
votes
2 answers
Run application on lock and unlock on android
I have an application installed on Android. I want to launch that application each time the screen is locked or unlocked.
Is there an application that can do this job ?
If not, and if I should code it, do I have to worry about intents and the…

adv88
- 51
- 6
3
votes
0 answers
Android JUnit Test of sendKeys Fails When Emulator Screen is Locked
I have an Android JUnit test that runs fine when the emulator screen is unlocked but will fail if the screen is locked. Here's a sample that demonstrates the problem:
package com.example.helloandroid.test;
import…

Zymurgeek
- 169
- 7
2
votes
1 answer
unable to detect shake event when my phones screen is off in android
In my application I want to detect the shake event and I'm using SensorEventListener, the code is working fine when my activity is running in foreground. But when I press the lock button of the phone to lock the screen, the shake event can't be…

picaso
- 713
- 2
- 14
- 26