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
0 answers

Android MediaSession: How to choose the icons shown on lock screen?

I have an app that plays media via MediaSessionCompat. I create a notification for the Notification Drawer using NotificationCompat and post it using NotificationManagerCompat.notify, and it looks great. (See screenshot.) My problem is with the lock…
Brian Rak
  • 4,912
  • 6
  • 34
  • 44
5
votes
0 answers

How to show custom UI / widget on Lock Screen in Android

I have a requirement to show a customised screen over/on the lock screen in android. logically I want to show a screen (an activity) when phone is locked. [] I have tried multiple ways to achieve this functionality but no luck yet. some links which…
5
votes
1 answer

How To Show Activity On Lock Screen When Password Is Set In Android

I am trying to show an activity when the screen is locked. I am running a service in the background, when an event occurs, I want to open an activity even if the app is locked(Similar to alarm app, which wakes up the screen and displays its…
hasan_shaikh
  • 1,434
  • 1
  • 15
  • 38
5
votes
1 answer

Check if user has configured a screen lock method (PIN/biometric/pattern/etc) using Flutter?

I want to check if the user has any type of screen lock set on their device (PIN, fingerprint, face, pattern, etc.). I don't want to simply check if the device is capable of for example biometrics, nor detect (from the background) if the device is…
Magnus
  • 17,157
  • 19
  • 104
  • 189
5
votes
0 answers

Make your app run as Android lock screen

Possible Duplicate: android lock screen source code I would like to know how developers have made their app run as the Android lock screen such as WidgetLocker, Screen Suit, or MyLock. People seem to know how to do this, but I have not found any…
Ari F.
  • 51
  • 1
  • 2
5
votes
1 answer

How do I show a Widget over lockscreen in Flutter?

I am building a VoIP calling app in Flutter. I need to alert the user and show a Widget on the screen so that the user can accept or reject incomming calls without unlocking the phone. So basically I need a Flutter version for this.
Akas Antony
  • 739
  • 1
  • 8
  • 19
5
votes
2 answers

iOS 12.2 - Lockscreen controlos missing

Since I updated to ios 12.2 lockscreen controls stopped to work for me and I can't figure out why. It worked fine in ios 12.1 App has enabled capabilities->Background mores -> Audio I set…
Martin Vandzura
  • 3,047
  • 1
  • 31
  • 63
5
votes
0 answers

windowIsTranslucent changes lifecycle, but error occur when entering lock screen

I'm experiencing that true is changing the way Android Lifecycle is handled. I guess it's doing that because if the window is translucent, you can still see the underlaying activity. Let's call it…
5
votes
0 answers

Show Lock Screen Dialog on Android O

I am able to successfully add a dialog to the lock screen on APIs prior to Oreo. It seems like google does not allow the flag TYPE_SYSTEM_ERROR anymore from this API on. Is there any way to show a dialog on lock screen on Android O? Code that works…
Augusto Carmo
  • 4,386
  • 2
  • 28
  • 61
5
votes
1 answer

AudioPlayer and lockscreen/control center control Swift

I'm new on Swift. I write because I want to ask a question. Me and my friend we are developing an audio player, but we have a problem. The player also works in background and remote controls from the lockscreen and the control center work, but if…
5
votes
1 answer

How to start an Android App From Lockscreen?

Is it possible to start an app from the lockscreen without unlocking the phone? Every time I lock my phone and want to use it again, I must enter a password or the correct sequence of pattern to be able to use my phone. But I want to add an specific…
adamH
  • 97
  • 1
  • 6
5
votes
1 answer

Prompt to unlock lock screen on custom notification click

I have a custom notification shown in the lock screen. I am using a broadcast pending intent to send a message to my app once the notification is clicked. Which later starts an activity in the broadcast receiver. The problem is, once I click on the…
rahulrvp
  • 2,006
  • 1
  • 19
  • 26
5
votes
0 answers

Android: Detect key-presses in Android when the screen is locked

Is it possible to detect key-presses in Android when the screen is locked? I want to be able to detect when the center D-Pad button is pressed while the screen is off.
Johan
  • 91
  • 4
5
votes
0 answers

dialog activity hides under call screen when secure lock is on, android

Im doing app like truecaller, and want to implement popup activity over native callscreen. Its okay, but when device locked on pin guard activity shows, but instantly hide under callscreen. Here is my code: public class IcomingCallActivity extends…
Patrick
  • 51
  • 3
5
votes
1 answer

Android notification sound not playing when app is not active

So, I have searched through the web and haven't seen anyone come across this problem I have. I am building an app where there needs to be a push notification. The push notification gets shown in the status bar and on the lock screen but only sounds…
LosGlennos
  • 99
  • 10