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
0
votes
1 answer
Locking the Android and disabling fingerprint
On some events, I'd like to lock the phone screen and require password (not fingerprint). That is, the fingerprint would be disabled just temporarily for one unlock. After the unlock, the user would be able to use fingerprint again. This is similar…

v6ak
- 1,636
- 2
- 12
- 27
0
votes
1 answer
How to launch an app when the screen unlocks?
I have tried this code but it's not working. Does anybody have any different solution? I have tried many ways like the below one from Stack Overflow but none of them is working.
manifest.xml
…

Aqib Abbas
- 25
- 9
0
votes
0 answers
How to run a r code in linux after locking the screen?
I am running a code in R that takes a long time to give me the results. I lock the PC (Linux OS) and it continues to run but after one hour or so the Rstudio closes automatically and when I unlock the screen I see that Rstudio is closed and the…

Helia
- 228
- 1
- 10
0
votes
1 answer
How Cm Locker works immediately after boot
I'm making an Android Studio project but I'm too bad to make it good and practical I have to make my own screen lock app and the biggest issue in this type of app that it needs to work immediately after boot completed
I've searched a lot about this…
user10567329
0
votes
0 answers
Locked and Unlocked detection in background
I'm working on an Android app in which I need to detect when user locked and unlocked, not the screen on/off. So, that I can perform certain action according locked and unlocked. But I'm unable to achieve my goal.
I declare a broadcast inside a…

Tasawur Abbas
- 1
- 2
0
votes
0 answers
How can I make my screen locker script work?
I've been having some problems with my screenlocker program. Spent a day trying to solve it but nothing worked, so I decided to write a program that locks my screen:
LOCKTIME=60
lastIdleTime=0
extra=0
while [ 1 ]; do
sound=$(pacmd…

IceMage144
- 3
- 2
0
votes
0 answers
Code to remain flashlight when activity is on paused and screen lock is pressed
i am implementing flashlight, and i have called all the functions i,e onDestroy() onBackpressed() to remain my flash light on. but i have bug that if i pressed on back and after that screen is locked the flashlight switches off after few seconds.…

Waqas
- 21
- 1
0
votes
0 answers
Is it possible to hide all the controls when screen is locked? - objective c
I want to hide all the controls on the locked screen when an app is playing in the background. However, I want the audio related information to be displayed all the time.
I read about MPRemoteCommandCenter but we can't implement the below code…

A_G
- 2,260
- 3
- 23
- 56
0
votes
1 answer
SystemEvents.SessionSwitch Crashes in Windows 8 but works in Windows 10
I am developing a WPF App and getting a very weird problem:
I use SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; to detect the screen lock event of the computer. The code works well in Windows 10. But crashes in Windows 8. The error…

randomcat
- 413
- 1
- 4
- 16
0
votes
0 answers
using DevicePolicyManager resetPassword succeeded,but unlock the screen failure
I developing a DeviceManager sample app,and i use resetPassword() method to reset screen lock password.
using some long length password,just like "123456"、"abcdef",this method result tells succeeded,and working good on screen lock.
using some short…

floatingmuseum
- 958
- 8
- 12
0
votes
3 answers
Get "Screen lock" setting in Android programatically
Is there a way of getting the current setting for Settings-->Security-->Screen Lock? It is the setting that can be "None", "Slide", "PIN", etc. I am not interested in changing it, just knowing the current one.
I'm only interested in telling "None"…

user2891462
- 3,033
- 2
- 32
- 60
0
votes
0 answers
onPasswordFailed alternative
I implemented listener onPasswordFailed, but it gets called only when lock screen PIN is wrong and longer than the actual PIN. Are there any alternative listeners that get called even if entered pin is shorter?

user3139563
- 180
- 1
- 11
0
votes
1 answer
How to lock screen 30 minutes after unlock
I would like my children to only use the computer for 30 minutes, at which time I would like the screen to be locked. At that point, if I choose to unlock the screen again, I would like the screen to lock again in another 30 minutes.
How can I write…

aam
- 1
0
votes
1 answer
How to get the current screen lock info?
I have an app which allows to remotely lock other phones named "Parental Lock".
In the app, users can put a password for a time to their "children"s phone.
The problem is when the time specified by the "parent" ends, I want to remove the password…

Mertcan Çüçen
- 466
- 3
- 13
0
votes
0 answers
Can we detect touch events when the phone screen is locked in iOS? I want my app running and accessible even when the phone screen is locked
Can we detect touch events when the phone screen is locked in iOS? I want my app running and accessible even when the phone screen is locked.

Ghazalah
- 233
- 2
- 14