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
92
votes
4 answers

iOS KeyChain not retrieving values from background

I am currently storing the username (email) and a salted hash of the email and password in the iOS KeyChain. I'm using the ARC'ified version found here. KeychainItemWrapper *wrapper = [[KeychainItemWrapper alloc]…
Bill Burgess
  • 14,054
  • 6
  • 49
  • 86
81
votes
3 answers

Android Lock Screen Widget

A few users have been asking me Android lock screen widgets for my app - I believe they want a widget that stays on their lock screens and allows them to interact with the app. I haven't been able to find any official documentation for this - the…
psychotik
  • 38,153
  • 34
  • 100
  • 135
76
votes
4 answers

Android activity over default lock screen

How can I display an Activity or Dialog to be visible over the lock screen? I have already tried displaying my lock activity when screen turns on by setting various window type in Activity.onCreate() method: …
plugmind
  • 7,926
  • 4
  • 34
  • 39
41
votes
3 answers

Media Session Compat not showing Lockscreen controls on Pre-Lollipop

I'm using MediaSessionCompat from AppCompat Support Library Revision 22. And on Lollipop I'm getting notification & also the background of lockscreen is the album art. And everything works cool. While on Pre-Lollipop devices, the music controls on…
37
votes
5 answers

Android how to show notification on screen

I've been working on push notifications and I am able to implement it and display it on status bar, the problem I am facing is that I want to display it even if the phone is lock, Under the lock screen where it says ("drag to unlock"), I have seen…
user606669
  • 1,674
  • 7
  • 27
  • 39
31
votes
1 answer

A way to get unlock event in android?

Is there a way to receive something like PHONE_UNLOCKED (with a BroadcastReceiver of some kind)? I have a service running that shows a Toast when the screen is turned on. Unfortunately a few phones don't show it until they're unlocked. Most of the…
Saman Miran
  • 424
  • 1
  • 6
  • 14
31
votes
1 answer

developing an android lock screen application

I want to develop my own lock screen for Android that will replace the default android lock screen. I do not have any idea how to start. Is there any tutorial about it or an example I can download and open in my eclipse and run ? Thanks a lot
user1902346
  • 799
  • 1
  • 12
  • 21
30
votes
1 answer

Creating an Android Lock Screen App.

How to create a lock-screen app that acts as a lock for android mobile. I did find one, But it was poorly constructed code wise and if I pressed the physical home key, it unlocked, making the application pointless. I did come across a forum stating…
user3047494
  • 429
  • 1
  • 6
  • 14
25
votes
3 answers

How to perform notification-action (click) on lock-screen?

TL;DR How can I make a notification that does some work from the lock-screen without unlocking? After clicking an action, a button on the notification or just the complete notification, I want to do an API call (without typing my unlock…
Nanne
  • 64,065
  • 16
  • 119
  • 163
25
votes
1 answer

Create custom lockscreen for android 4.0 or above?

I want to create custom lockScreen for android 4.0 and above, I have tried widget to create lockscreen but it supports only android 4.2. Is there any other way to create custom android lockScreen?
Aadil
  • 713
  • 2
  • 12
  • 30
23
votes
0 answers

how to enable "show on lock screen" permission programmatically on xiaomi mi phone

How can I enable "show on lock screen" permission on Xiaomi phones? Is it possible by programmatically or add custom permission in manifest or still somehow? Is it possible to know whether this permission has already been granted or not?
s_klepcha
  • 379
  • 3
  • 12
23
votes
3 answers

Use screen lock in my app

Is it possible to use the default security settings, which user has set to the phone, as a locking or login mechanism for my app too? I mean like when we reset the phone, it asks for phone password or pattern. Is it possible the same way that I can…
Mangesh
  • 5,491
  • 5
  • 48
  • 71
22
votes
9 answers

Preventing status bar expansion

Is there anyway to prevent users from sliding the status bar (expand) or collapsing back? I'm trying out a lockscreen replacement and seems like it's a must-have feature. Is there any possible way to do it without requiring root privileges?
Ye Myat Min
  • 1,429
  • 2
  • 17
  • 29
22
votes
5 answers

Media Player controls in Notification

I have written complete Music Player to stream music from the web, but I don't know how to put media player controls in Notification and when the screen is Lock. I am following this tutorial to show controls in the Notification bar, but still not…
Sophie
  • 2,594
  • 10
  • 41
  • 75
19
votes
2 answers

Android Facebook lock screen notification

On the latest version of Android app Facebook showed lock screen notification feature, like on this screenshot: Did anyone try to implement this? I know that It's simple to show Activity on top of lock screen, but unfortunately It doesn't work…
froger_mcs
  • 13,972
  • 5
  • 23
  • 34
1
2 3
60 61