lockscreen

Android lock screen notification is not able to open Browser on double tapping

℡╲_俬逩灬. 提交于 2019-11-28 01:39:59
问题 My app sends out a notification, which opens the Browser with the given url on tapping. Actually, the wrapped intent is sent to a BroadcastReceiver, and this broadcast receiver starts Browser. Intent browserIntent = new Intent(Intent.ACTION_VIEW, intent.getData()); browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(showTaskIntent); It works fine with the notification on pull-down notification bar, but not with the lock screen notification. It's not able to open

xcode - MPNowPlayingInfoCenter info is not displayed on iOS 8

£可爱£侵袭症+ 提交于 2019-11-27 20:54:46
I'm developing a music application, which should play music in the background. I use the MPMoviePlayerController to play the music. My code to initiate the MPMoviePlayerController : NSString* resourcePath = [[NSBundle mainBundle] resourcePath]; resourcePath = [resourcePath stringByAppendingString:@"/music.m4a"]; NSError* err; self.player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:resourcePath]]; if (err) { NSLog(@"ERROR: %@", err.localizedDescription); } AVAudioSession *session = [AVAudioSession sharedInstance]; [session setCategory

How to customize Android's LockScreen?

久未见 提交于 2019-11-27 16:37:35
问题 I know that there is already some apps can do this, such as: WidgetLocker Lockscreen Flyscreen I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code. And I wonder if it will be different to deal with when the screen is locked by draw pattern? 回答1: Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code

Enable or disable the PatternLock screen from code

血红的双手。 提交于 2019-11-27 13:21:42
问题 I have tried to find a way to disable the PatternLock screen temporarily. I don't want the lock to be disabled completely, but the user should not need to re-enter his pattern all the time. My idea is to write a service which disables the pattern after some user activity and re-enables it after a while. (and even more) There are apps on the market that do something like that (i.e. AutoLock or TogglePattern), so there must be a solution. I know that I can prevent a lock completely by using:

Creating an Android Lock Screen App.

空扰寡人 提交于 2019-11-27 10:42:00
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 some method of blocking home button functionality was removed in Android 4.x Yet, I have an awesome idea for a lock-screen but no ground to get started. If anyone has any knowledge on the subject, I'd love to hear it. Thanks all :-) Yes, it is possible. This is a simple lock screen Source Code from GitHub Creating an app that works like a lock is no

How to make our own lock screen in android instead of default lock screen [duplicate]

邮差的信 提交于 2019-11-27 10:39:03
问题 This question already has answers here : Creating custom LockScreen in android (5 answers) Closed 4 years ago . I have an idea of creating my own phone lock app similar to android pattern lock. I need to display or start my app whenever the phone boots/restarts/phone, lock/phone, and unlock. I don't know how to make the app appear instead of default lock screen and to hide the default lock screen. So my questions are: How to display or start my app instead of default lock screen What is

Create custom lockscreen for android 4.0 or above?

我的未来我决定 提交于 2019-11-27 10:28:23
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? I have found snippets somewhere on internet few months ago, I have made changes and recently uploaded the working demo on my github account, You can have a look at this Note: It will disable "hardware" home button. I hope it will be helpfull !! Screenshots: It provides lockscreen in API 8 or above. Initial Locked Unlocked 来源: https://stackoverflow.com/questions/16911049/create-custom-lockscreen-for

Android Facebook lock screen notification

∥☆過路亽.° 提交于 2019-11-27 09:40:17
问题 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 with translucent background. Basically it works but below our activity we see launcher screen, not lock screen (like lock screen in this case would be also transparent). What I tried right now is: getWindow().addFlags(WindowManager.LayoutParams.FLAG

Programmatically changing the iOS lock-screen

情到浓时终转凉″ 提交于 2019-11-27 08:23:36
I'm building an app which would have to have the ability to show my own views on the iPhone lock screen. I've seen lots of apps which let you customize the lockscreen and so forth and these were App Store apps so i'm guessing it has to possible. I just can't figure out what to use in the iOS SDK to even try implementing this. Oh and P.S: same goes for wallpapers—can we change this from inside our app? Norbert It can be changed programmatically (change to SpringBoard), but it won't make the way to the (official) AppStore. So if you want to build an app that can change something like the lock

Disabled Keyguard Lock re-enables itself after clicking on a notification

。_饼干妹妹 提交于 2019-11-27 07:45:37
问题 In my application I disable the keyguard lock (i.e.Remove Lockscreen) using the code below and it works fine until I click on any notification in the notification bar. If I click on a notification the lock screen is automatically re-enabled. Any help is appreciated. private void remove_lockscreen() { final CheckBoxPreference lock = (CheckBoxPreference) findPreference("remove_lockscreen"); KeyguardManager km = (KeyguardManager)getSystemService(KEYGUARD_SERVICE); KeyguardLock kl = km