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
programatically remove make the screen lock as "none"
I am on a project in which I will use the android 4.4 version on a non-touch based display unit. Hence i want the screen lock to be "none" by default and this i need to make in the build.
So is there any XML file or variable which i can modify so…

JVN
- 239
- 2
- 16
0
votes
1 answer
Screen lock orientation for mobile-webapp JS
I'm trying to use the experimental screen orientation API:
http://www.w3.org/TR/screen-orientation/
I can implement this with this MDN recommandation:
https://developer.mozilla.org/en-US/docs/Web/API/Screen.lockOrientation
Is there already exists a…

user2487815
- 77
- 6
0
votes
5 answers
The longest path of Android screen lock pattern
To assume that we have 9 points. Each one can only be visited by once. The path, such as from the upper left corner to bottom right corner, is also allowed. Can anyone provide an algorithm to calculate the longest path for a screen lock pattern?

lr_5146
- 18
- 2
0
votes
2 answers
Let the screen turn but prevent screen lock
I would like to know if it is possible to let the screen turn off (as setted in device parameters) but to prevent the phone to lock while my application is running in front.
So, when something happen in the app, I can turn on the screen and the…

Labe
- 1,262
- 2
- 20
- 30
0
votes
1 answer
prevent ipad screenlock/screensaver/sleep
I'm trying to run automated testing of an iPad running 7.1.2. This machine is in a lab and always plugged in. For testing reasons, we need to prevent the screensaver (screenlock, sleep mode) from ever coming on. I've tried the obvious of setting…

user3550496
- 333
- 5
- 14
0
votes
2 answers
Iphone Screen Lock
I'm not too familiar with Iphone development, but I am trying to create an App that can lock the screen and prevent the user from using the phone under certain conditions.
I have been told before that it is impossible for this type of functionality…

Garrison_Laforge
- 137
- 2
- 10
0
votes
1 answer
Firefoxos Cordova Vibration not working if device is locked
Cordova 3.5.0 vibration plugin works well in firefoxos 1.3, except it does not get executed if screen is locked.
Any way to overcome this issue?
Note: the app is certainly running as it plays (at same time of the expected vibration) music

lui
- 440
- 3
- 16
0
votes
3 answers
CoreBluetooth - centralManagers method didDiscoverPeripheral becomes least frequent to nothing in sleep mode
I am using CoreBluetooth and the callback method didDiscoverPeripheral gets called frequently when the app is foregrounded or backgrounded or the device is locked with device screen still turned on.
But as soon as the screen is turned off / blacked…

npn
- 103
- 1
- 12
0
votes
0 answers
Android Application is not being launched, Screen Lock
I am creating a screen lock for android phones. If my device is connected to PC via usb, it is launching correctly. But if I unplug the usb cable and start application again, it says application unfortunately closed. Any help regarding this issue...…

Nadeem Ilyas
- 21
- 1
- 5
0
votes
1 answer
Android show alert in screen lock
I try to show alert when screen is locked
I googled about screen locked but i do not know how i can check when screen is locked.
I found one post but i do not know how this method working
this…

user3345767
- 349
- 1
- 2
- 11
0
votes
2 answers
After phone lock flashlight app stop flashing
I tried a code below but it just prevents screen to be slept.
Window window = getWindow();
WindowManager.LayoutParams params = window.getAttributes();
window.setAttributes(params);
window.addFlags(
…

Axay Prajapati
- 791
- 5
- 20
0
votes
1 answer
Is there a way to lock the screen with an Activity while under certain conditions?
I'm working on an app that requires the screen to be locked with a particular activity when under certain conditions. Specifically, I have a service that runs in the background checking for GPS speed, and if the speed becomes greater than a defined…

Need-4-Steve
- 77
- 1
- 1
- 6
0
votes
1 answer
How do I catch the home button click via a broadcast reciever or other technique and stop it?
I'm trying to build a screen-lock app. However, I'm experiencing a gaping hole in the system. The moment the user clicks/touches/presses the home button, the activity goes to the background. How do I prevent that? Is that possible?
I'd like a…

Sunny
- 1
- 2
0
votes
3 answers
Android orientation change even after locking it in system settings
as in the topic, ive got a trouble with locking screen orientation after its been locked in device's settings. Its a landscape app. Ive read couple threads about similar problem but havent got any revelant answer.
Thanks in advance
Mac

Maciej Boguta
- 1,354
- 1
- 12
- 15
0
votes
1 answer
DevicePolicyManager restore password or pattern
I'm making a security program and I'm using DeviceAdmin mechanism. I'va made a DeviceAdminReceiver, it works flawlessly.
I need to protect my software from deinstalling. On the first run user enters the password for uninstallation.
In…

Revertron
- 1,213
- 2
- 13
- 17