lockscreen

“Lock” Screen On Mac App

好久不见. 提交于 2019-12-05 18:08:38
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 + NSApplicationPresentationDisableProcessSwitching + NSApplicationPresentationHideDock +

Lockscreen is displayed between activities

末鹿安然 提交于 2019-12-05 14:03:02
问题 I work on a kiosk app which can launch other android apps. It runs on top of the lockscreen. The issue I am seeing is that the lockscreen is displayed briefly between activities. We must keep the tablet locked so unlocking is not an option. I have been able reproduce this with a super simple case. Both activities are nearly identical. The application is a device administrator and can be displayed above the keyguard. I have also tried not using finish() at all but that didn't fix the issue.

How to overlay a layout on lock screen when in devices running Oreo and Pie

被刻印的时光 ゝ 提交于 2019-12-05 07:30:35
In my application i'm trying to overlay a layout with a service here when i'm running service it successfully executes and display the layout on lock screen when target devices is lower than oreo but when i'm trying to overlay the same from versions later than oreo it's not working however when i change the flag to Type_Application_Overlay as suggested in other answers it just display layout when screen is unlocked but i want to show it over lock screen i tried searching a lot but didn't find any helpful answers to solving this problem some answers suggested displaying an activity over

Lock Screen iPod Controls Not Working With Spotify Music Player

大兔子大兔子 提交于 2019-12-05 06:04:18
I added the Spotify player to my app which also plays music using the MPMusicPlayerController. When music is playing from Spotify and the screen is locked, the remote control events are not received for play/pause and FFW/RWD when the user presses these buttons on the locked screen. If music is playing from the MPMusicPlayerController, I am able to receive the remote control events based on the following code: -(void) ViewDidLoad { ... [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; [self becomeFirstResponder]; ... } and - (BOOL) canBecomeFirstResponder { return YES; } -

Android Lock Screen and Keyboard Controls

筅森魡賤 提交于 2019-12-04 20:20:36
I am part way through writing a media player app for Android. It's all going really well so far, however I am now reaching the difficult stage! I have two questions. Do i need to implement a service activity? As I understand it, this is required to allow the app to continue working in the background. However, mine is working fine while I move to other programs on the tablet, and returns to the app without problems. Can someone please explain what the advantages are of services? Secondly, I would like to integrate the media player with the standard lock screen controls in ICS, and also make it

How to show SurfaceView on Lock Screen?

空扰寡人 提交于 2019-12-04 19:24:53
I'm working to implement a lock screen just like the water ripple lock screen of Samsung Galaxy 3. I have finished the GLSurfaceView object. But there is a problem when I port it to Lock Screen. The SurfaceView couldn't be displayed on Lock Screen whose window type is TYPE_KEYGUARD. If I use setZOrderOnTop(true) to this SurfaceView, it Can be displayed, but it will overlay all other layers of Lock Screen, which is not my anticipation. This SurfaceView can display normally on normal application. I used "adb shell dumpsys SurfaceFlinger" to dump the layers information. Its visibleRegionScreen is

How to change the Lock screen custom text(Owner Info)?

人盡茶涼 提交于 2019-12-04 17:17:43
I wrote the program code String message = "This is test"; Settings.System.putString(context.getContentResolver(), Settings.Secure.LOCK_PATTERN_ENABLED, message); This is not changing the lock screen text(Owner Info) and Added permission as <uses-permission android:name="android.permission.WRITE_SETTINGS" /> Change Settings.Secure.LOCK_PATTERN_ENABLED to Settings.System.NEXT_ALARM_FORMATTED . Note that Settings.System.NEXT_ALARM_FORMATTED was deprecated in API level 21. You must use getNextAlarmClock() instead. getNextAlarmClock() is a public method in AlarmManager class which was introduced in

windowIsTranslucent changes lifecycle, but error occur when entering lock screen

為{幸葍}努か 提交于 2019-12-04 16:49:09
I'm experiencing that <item name="android:windowIsTranslucent">true</item> 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 activity A. Let's go through the following example where we have another activity on top of activity A. This other activity is called B. Activity A Started - This activity is the first activity Activity A Stopped - Now you start activity B. Activity B Started - This activity has windowIsTranslucent set to false. Hence we can't see anything of activity A

Activity return to Portrait when Screen is Locked

99封情书 提交于 2019-12-04 11:44:34
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() -> onDestroy() -> onCreate() -> onStart() -> onResume() and loads the Landscape layout. What I expect

AudioPlayer and lockscreen/control center control Swift [closed]

南笙酒味 提交于 2019-12-04 07:31:18
Closed. This question is off-topic. It is not currently accepting answers. Learn more . 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 button of our player is not updated with the correct icon. My question is, how can I make