lockscreen

React Native: How to detect device lock/unlock event?

Deadly 提交于 2019-12-22 18:43:01
问题 Concept: My application needs to record user activities on phone. Activities contain Foreground, Background, Kill, Lock and Unlock. What I did: I am able to record application's Foreground, Background and Kill states using AppState library. Requirement: I need to perform actions on device Lock/Unlock states. Unfortunately I am unable to listen device lock and unlock event in above library. Any help would be appreciated. 回答1: Since that day I couldn't find any way to detect Lock/Unlock event

Android Lockscreen with FingerPrint support

China☆狼群 提交于 2019-12-22 10:00:39
问题 I have an app that serves as custom lockscreen and I want to preserve unlock functionality using fingerprint. I want to unlock my phone when device screen is off or when I am looking at my lockscreen. The lockscreen is an activity that runs above all other components. If device is idle (screen is off) and I use fingerprint, phone turns on but my lockscreen is still visible. If I use fingerprint when my lockscreen is shown, nothing happens, the sensor is not active. If I implement listening

“Lock” Screen On Mac App

南楼画角 提交于 2019-12-22 08:38:20
问题 In Mac OS X, what API do I need to call in order to place a window over not only the entire screen, but the menu bar and dock as well? Also, is it possible to effectively "lock" the screen into this position, disabling Mission Control, launchpad, etc.? I have tried the following code within the App Delegate's implementation file: - (void)awakeFromNib { @try { NSApplicationPresentationOptions options = NSApplicationPresentationDisableForceQuit + NSApplicationPresentationDisableHideApplication

Home button override in android

早过忘川 提交于 2019-12-22 06:46:26
问题 Im trying to understand the ways to override the home button functionality in Android. Im doing a LockScreen App and the HOME button is unlocking the device. I have been researching the last 3 days for a way to do it, and all the solutions I have found are not 100% effective (mostly due to the nature of HOME). I have implemented solutions for all the solutions below in these three days but Im still not satisfied. Problem: I want to be able to override the HOME button functionality the same

Activity return to Portrait when Screen is Locked

两盒软妹~` 提交于 2019-12-21 19:53:02
问题 Related questions: https://stackoverflow.com/questions/15648713/strange-behaviour-while-screen-lock-in-landscape This is a strange behaviour i got in my Activities. Portrait mode (It's normal) Press screen lock, Activity: onPause() ; Unlock the screen, Activity: onResume() . Landscape mode (It's strange) Press screen lock, Activity: onPause() -> onStop() -> onDestroy() -> onCreate() -> onStart() -> onResume() which loads the Portrait layout; Unlock the screen, Activity: onPause() -> onStop()

AudioPlayer and lockscreen/control center control Swift [closed]

最后都变了- 提交于 2019-12-21 15:15:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . 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 music is interrupted by one of these two controls, the play/pause

Android Lollipop - Bypass lock screen for popup activity

拥有回忆 提交于 2019-12-21 06:30:03
问题 I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop

Android Lollipop - Bypass lock screen for popup activity

吃可爱长大的小学妹 提交于 2019-12-21 06:29:06
问题 I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop

Media Session Compat not showing Lockscreen controls on Pre-Lollipop

ⅰ亾dé卋堺 提交于 2019-12-20 08:36:48
问题 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 lockscreen are not at all shown. It's weird & I tried everything but it doesn't show up, not even the background changes. I hope someone has solution to this issue. Note: RemoteControlClient used to work on Lollipop & KitKat /** * Initializes the

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

巧了我就是萌 提交于 2019-12-20 08:36:24
问题 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 code) Details Goal Based on the answer on this question I tried to make a notification with an action that works on the lockscreen without unlocking the device. The action is something that doesn't need any further interface or interaction (think 'send an API