lockscreen

Android: Espresso test for lock screen/main screen

僤鯓⒐⒋嵵緔 提交于 2019-12-02 03:08:09
When I run my app I have a banner notification pop up on certain dates alerting the user of app activity. When the user double clicks this they're taken to the app. Also, on the top left of the app is a notification icon that when clicked shows the banner again (if the user did not clear it at the lock screen). I need to write a test for these two, but I'm only familiar with onView, specifically things like: onView(withId(R.id.list_product)).perform(longClick()); Does the lock screen on an emulator have an R.id, or does the home screen (not for the app, but for android)? How can I test these

Qt4: Making fullscreen window impossible to get around (a lock screen)?

爷,独闯天下 提交于 2019-12-01 23:19:43
My application is an OS lock screen (like GDM's lock screen or KDE's), so I'm trying to make it function like one. I am trying to make my application's window hover above all other windows and disable/intercept all keyboard shortcuts ( ALT-TAB , CTRL-ALT-D , etc.) that would cause it disappear. Is there any way to do this? I'm 100% sure there is, as lock screens with GUIs exist, but I just can't find the place to look... I don't know how to do it with Qt, but what you are looking for is called grabbing . You can grab the pointer input device as well as the keyboard . Edit: Looking in to the

redraw GUI on didreceivelocalnotification when come from lock screen iphone

有些话、适合烂在心里 提交于 2019-12-01 22:20:34
问题 How do I prevent my GUI from redraw when it comes back from lock screen after receiving a UILocalNotification? In didReceiveLocalNotification I present a modal view, but the old state of my view controllers is shown for a moment before that. How do I prevent this? Also the order of events I get when I come back on local notification from background is as following: 1. UIApplicationWillEnterForegroundNotification 2. UIApplicationDidBecomeActiveNotification 3. didReceiveLocalNotification When I

Lock screen triggers application lifecycle events of different activity

和自甴很熟 提交于 2019-12-01 16:50:37
问题 When I receive a Push message in a service that extends FirebaseMessagingService and I start an Activity in this class, then the following lifecycle events / methods get executed: Push Message starts VideoRingingActivity Start VideoRingingActivity onCreate disableLockScreen The screen switches from black to the lock screen, so it doesn't show the VideoRingingActivity onStart onResume onPause onStop Now the actual VideoRingingActivity is shown? I was expecting this to come up after

How to play audio in background with firefox os?

我怕爱的太早我们不能终老 提交于 2019-12-01 16:48:29
In my manifest file I've add the audio-channel-content in permissions: "permissions": { "audio-channel-content":{"description":"Use the audio channel for the music player"} } In my index.html I've got an audio tag like: <audio mozaudiochannel="content" preload="none" src="http://my-stream-url"></audio> I can play my audio stream during 2mn: The first one when the phone is unlock. After 1mn my phone auto-lock the screen and it continue playing for another minute. Does it possible to play this audio stream more than 1mn after the lock? Thanks in advance. The code and permission block you have

How can I lock the screen from within the Windows 10 Mobile app?

限于喜欢 提交于 2019-12-01 12:13:30
I was searching through UWP API Reference and I didn't find any way how to Lock the device from within app or with Secondary Tile. And I am frustrated, because there is a proof that it can be done. I don't want to make any advertisements here but for example this app: https://www.microsoft.com/en-us/store/apps/quicktiles/9wzdncrfhzts Can create secondary tile that just locks the screen. How can I do it myself? Thanks. I don’t think it is possible with the UWP libraries. I tried to do an app able to lock the screen and had to give up few week-end ago. You could vote for such idea here : https:/

How do I get android lockscreen package name

核能气质少年 提交于 2019-12-01 09:26:26
Is there a way to get the android lockscreen package name? I want to show alert on the lockscreen using AlertDialog.Builder . So I need to know when the lockscreen is active and what it's package name. You can detect if the lockscreen is shown with: ((KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE)).inKeyguardRestrictedInputMode(); And you can get the current top activity with: (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE).getRunningTasks(1).get(0).topActivity; This will usually be the lockscreen activity, but it is possible that for example the phone app is shown

Android lock screen

天涯浪子 提交于 2019-12-01 06:11:20
问题 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 回答1: Yes and no. Their is no public API to create or modify the lock screen. Whoever built the OS version on your device created your lock screen. Some of the manufacturers or carriers have added additional things to the lock screen. I've seen some that tie in to the music app, HTC sense has a somewhat customizable lock screen.

How do I get android lockscreen package name

北城以北 提交于 2019-12-01 05:50:49
问题 Is there a way to get the android lockscreen package name? I want to show alert on the lockscreen using AlertDialog.Builder . So I need to know when the lockscreen is active and what it's package name. 回答1: You can detect if the lockscreen is shown with: ((KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE)).inKeyguardRestrictedInputMode(); And you can get the current top activity with: (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE).getRunningTasks(1).get(0).topActivity;

Add image on lock screen in iOS app, when app is running in background

不打扰是莪最后的温柔 提交于 2019-11-30 23:12:58
There are many question on site like Programatically changing the iOS lock-screen , How to set lock screen , wallpaper and Ringtone programmatically in iPhone? All say that apple will reject if we modify the lock-Screen image. But I seen it in many apps. Example Saavn is in AppStore. In this if a song is playing and device is locked, It shows the image of the current album on the lock screen. Please share if anybody know how it can be done. Thanks. Music apps can change the lock screen wallpaper because iOS automatically displays the album artwork for the song/podcast/etc that's playing (see