lockscreen

Handling volume change on android lockscreen?

天大地大妈咪最大 提交于 2020-01-14 19:14:19
问题 What I am trying to do is, being able to catch volume up/down button actions on lockscreen on android 4.4. Google Cast Design Checklist document describes lock screen requirement "Provide access to the volume control via hardware buttons". I tried various ways to handle hardware volume buttons on lock screen but none of them worked. onKeyDown/dispatchKeyEvent - I tried to override onKeyDown as well as dispatchKeyEvent methods on Activity, but none of these are executed on lockscreen, these

HTML5 App on Windows 8 which cannot be closed

只愿长相守 提交于 2020-01-14 05:44:10
问题 I want to create a HTML5 Application on a Windows 8 Computer which provides product information for a user in the store. Does anyone know if it is possible to set up the windows 8 in a such away, that the user cannot exit the HTML5 App? 回答1: This isn't possible on Windows 8; the soon to be released Windows 8.1 has a "Kiosk Mode", which seems to be what you are looking for. From Windows 8.1 kiosk mode locks systems to a single app: Generally speaking, kiosk mode is something that’s intended

LockScreen Player is not appearing once the screen is locked in actual device.

无人久伴 提交于 2020-01-06 07:01:13
问题 I'm new to swift and I have a AVPlayer which is playing fine on a particular screen. My objective is to play the same audio on lock-screen mode. So far this is what I have done and the code as bellow. for some reason I don't see the player widget on lock-screen mood at all. What am I doing wrong here. class MyAudiosViewController: UIViewController,UITableViewDelegate,UITableViewDataSource,AVAudioPlayerDelegate { @IBAction func playButtonPressed(_ sender: Any) { if(currentRowSelected != nil ){

iPhone detect touch when screen is locked

天大地大妈咪最大 提交于 2020-01-05 11:16:18
问题 I know that apple knows when you touch the locked screen (iPod shortcut, call), but can I know somehow when user touches it. Thanks in Advance! 回答1: No, your window (which would accept the touch) is not active when the screen is locked. 来源: https://stackoverflow.com/questions/2508090/iphone-detect-touch-when-screen-is-locked

Android emulator 4.2.2 not showing add widget option in lock screen [closed]

若如初见. 提交于 2020-01-03 13:57:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . In newer android versions you can add a widget to the homescreen AND the lock-screen. To be able to test this during development it would be good to be able to add these to the emulator-lock-screen as well. This

How we can disable navigation soft buttons home,recent

百般思念 提交于 2020-01-03 03:04:31
问题 Im working on lockscreen in android How we can disable navigation soft buttons, have tried all the ways, systemoverlay but its doesnt work, on pressing home button its kill the service and activity. 回答1: back button can be controlled by overriding the onbackpressed() method. Homebutton can controlled by making your application a launch. <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" /> <category android:name="android

Setting iOS background/lockscreen image programmatically?

别等时光非礼了梦想. 提交于 2020-01-01 02:47:08
问题 I'd like to be able to set the lockscreen background image programmatically. I'm aware that this is only possible for jailbroken iOS devices. Here are some things that I've tried: Place a LockBackground.png in /private/var/mobile/Library/SpringBoard/. This works but requires a hard respring. notify_post("com.apple.language.changed"); doesn't work for a soft respring. Use class-dump to dump private methods of UIKit. UIKit in 4.2 used to have a method called + (void)setDesktopImageData:(id)fp8;

Android - Cant see the incoming calls when LayoutParams.TypeSystemError is displayed

馋奶兔 提交于 2019-12-31 05:39:06
问题 I'm developing lock screen app. Here Lock screen is displayed on the top of the screen using this command "WindowManager.LayoutParams.TYPE_SYSTEM_ERROR;" But my problem is I can't See the Incoming call Window when the custom lock screen is displayed. Incoming call window is not overrided over my custom lock screen. 1) Is there any permission required for displaying the incoming call window.? 2) We have to add any other codes for answering the incoming class This is my Lockscreen receiver

how to load high resolution image windows phone taskagent? [out of memory]

末鹿安然 提交于 2019-12-30 07:31:50
问题 As we know, it is only 11.5MB memory that can be used in a Windows Phone 8 task agent. I was trying to make dynamic lock screen image in the background task agent. When I get the 480*800 image, it works fine but when I change it to 768*1280 I the exception: Out of memory 1 pixel cast 4 K so (480*800*4)/1024/1024=1.46M (768*1280*4)/1024/1024 = 3.75M When I tried to convert a byte[] to a BitmapImage: public BitmapImage ConvertDownloadStringToStream(byte[] downloadImageBytes) { if (!

how to load high resolution image windows phone taskagent? [out of memory]

这一生的挚爱 提交于 2019-12-30 07:31:49
问题 As we know, it is only 11.5MB memory that can be used in a Windows Phone 8 task agent. I was trying to make dynamic lock screen image in the background task agent. When I get the 480*800 image, it works fine but when I change it to 768*1280 I the exception: Out of memory 1 pixel cast 4 K so (480*800*4)/1024/1024=1.46M (768*1280*4)/1024/1024 = 3.75M When I tried to convert a byte[] to a BitmapImage: public BitmapImage ConvertDownloadStringToStream(byte[] downloadImageBytes) { if (!