Questions tagged [lockscreen]

A lock screen is a user interface element used by various operating systems. They regulate immediate access to a device by requiring that the user perform a certain action in order to receive access: such as entering a password, using a certain button combination, or by performing a certain gesture using a device's touchscreen.

906 questions
5
votes
1 answer

Custom Lock Screen Implementation Techniques

So, I have been exploring many similar questions across website (this, this and this and many more). People wanting to implement their own custom lock screen (not talking about widgets). So far there have been two implementation techniques which…
Dev Dreamer
  • 289
  • 1
  • 9
  • 18
5
votes
1 answer

RemoteControlClient - is Audio Focus necessary/required?

I'm a newbie with RemoteControlClient and I'm still looking into it. However, I've seen that it can be used to get media buttons like Play/Pause on the lock screen. Anyway, my question is, is Audio Focus required for RemoteControlClient to work to…
LOL. NO.
  • 577
  • 1
  • 6
  • 33
5
votes
2 answers

iOS Private API: lock device and power off the screen

I'm making an app for jailbreak that lock the device when the user launch the app. I've tried GSEventLockDevice(); from GraphicsServices.framework but this does not work properly because it locks the screen but does not power off the screen. Is…
Davide Di Febbo
  • 301
  • 5
  • 14
5
votes
1 answer

Activity on lockscreen - dismissing it resumes previous activity

Say my app is running normally, showing Activity A. Then the user locks the phone. A dutifully goes to sleep (onPause()). At some point while the screen is off, I need to show something to the user. So from my background code (service), I call…
Stephan Steiner
  • 1,043
  • 1
  • 9
  • 22
5
votes
1 answer

Lock Screen for android is not working properly using Android

for Lock Screen programmatically using Android. I got some good ideas from Stackoverflow previous questions regarding this, and I did some thing well, but when I run that code, there is No Exception and Error. but also , the screen didn't lock.…
praba
  • 1,074
  • 3
  • 17
  • 38
4
votes
1 answer

Android lock screen

Is there a way to display text on lock screen? Like the information about unread SMS messages or like that Music Player on lock screen with Play/Pause buttons. Thanks
Sebastian Nowak
  • 5,607
  • 8
  • 67
  • 107
4
votes
1 answer

Android 11 FCM problem on locked screen (Kotlin)

I have an application. I extended the FirebaseMessagingServie. I added it into the manifest:
4
votes
1 answer

track/count unlock attemp made in pattern

I have developed a small application which can recognize when device get lock and unlock using BroadcastReceiver, plus filter.addAction(Intent.ACTION_SCREEN_OFF) and filter.addAction(Intent.ACTION_USER_PRESENT). This work well and log properly when…
akash kubavat
  • 847
  • 6
  • 17
4
votes
2 answers

Android keep screen on on Samsung devices

I have a streaming app and I want to avoid that the screen turns off while streaming. It works on most of my devices but it doesn't on certain Samsung devices (Samsung Galaxy S21 Ultra, Samsung Galaxy S10 etc). What I tried so far: Add this to the…
grill2010
  • 574
  • 6
  • 23
4
votes
2 answers

how to configure gnome to use only one specific keyboard layout on lock screen?

for lock screen, gnome uses keyboard layout that was last used before locking the screen. Is there a possibility to configure gnome in such a way that it will always switch keyboard layout to some specific value for lock screen? Example, how it…
4
votes
1 answer

In Android 10 devices, Biometric prompt is failing with ERROR_CANCELED all the time on top of lock screen

In Android 10 devices, Biometric prompt is failing with BiometricPrompt.ERROR_CANCELED all the time on top of the lock screen. Error is returned in onAuthenticationError callback of BiometricPrompt.AuthenticationCallback class. The biometric prompt…
4
votes
0 answers

Android - prevent lock screen FaceWidget "Music controller" from overriding my music player app notification

I tried with no luck to add custom commands to music controller on lock screen and AOD screen, thus I decided to make a custom notification (at least for the lock screen). The problem is, that if user has a FaceWidget (settings > Lock Screen >…
4
votes
2 answers

XIaomi device does not dismiss lockscreen when opening Activity from background (alarm event)

I have an application that opens an Activity on a certain event. Just like alarm application. I use the following flags: getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON …
4
votes
1 answer

How to Prompt User to Enter Pin in Android Lock Screen?

Android screen lock/ unlock programmatically and How to lock/unlock phone programmatically : Android and many questions i have searched for answer but i didn't got the exact answer for my usage. I would like to get a enter credentials or Enter pin…
Anbu Kesavan
  • 43
  • 1
  • 4
4
votes
0 answers

Keystore -Detect if the lock screen is changed or wiped

I have read Analysis of Secure Key Storage Solutions on Android and I want to use setEncryptionRequired() so that my keys must be encrypted at rest (pre-M Android). Changing the pin/pattern on the lock screen as described here on Android < 6.0 will…
Thinh Nguyen Van
  • 113
  • 2
  • 18