lockscreen

How to get android lock screen wallpaper?

为君一笑 提交于 2019-11-30 05:18:58
问题 I use the code below to retrieve the android lock screen wallpaper on an android 8.1 phone: WallpaperManager manager = WallpaperManager.getInstance(getActivity()); ParcelFileDescriptor pfd = manager.getWallpaperFile(WallpaperManager.FLAG_LOCK); if (pfd == null) // pfd is always null for FLAG_LOCK, why? return; Bitmap lockScreenWallpaper = BitmapFactory.decodeFileDescriptor(pfd.getFileDescriptor()); // ... I have granted the READ_EXTERNAL_STORAGE permission and set a lock screen wallpaper

Changing iphone lock screen programmatically when app is running in background

馋奶兔 提交于 2019-11-30 04:08:13
I am developing an iphone app where i have to change lockscreen image programmatically when app is running in background.I have got lots of stuff saying it is not possible but there is an app for this please let me know how to acheive this. Thanks. The only way you can change the lockscreen image is when you are playing audio. Police Scanner+ does play audio, and therefore can set an image. This only works with iOS 5+ and is done something like this. - (void)setupNowPlayingInfoCenter:(MPMediaItem *)currentSong { NSString *ver = [[UIDevice currentDevice] systemVersion]; CGFloat version = 4.0;

Is it possible to change the iOS 8 lock screen audio label when playing from web?

喜夏-厌秋 提交于 2019-11-30 02:12:57
问题 I am building an HTML5 app that plays audio. However, when playing audio on iOS8 iPad/iPhone in lock screen mode, the URL of the audio is showing (see pic below). It would be great if it was possible to change that text to something more describing, such as the Artist/Title of the track. The logical solution would be to read from a title attribute or some apple-specific meta tag, but nothing I have tried seems to work. Does anyone know if the text can be altered with html/javascript? 回答1: You

Where can I find examples or tutorials about creating a custom android lockscreen?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 15:43:38
问题 I'm interested about Android and have been trying to find an example or tutorial about creating a custom lockscreen. I wanna create new lock screen for easy accessibilities. For example fast access to camera. fast access to phone dial. Using Speech to unlock screen. I want to design the lock screen for blind people. This answer might be useful 回答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

Lock Screen for android is not working properly using Android

泄露秘密 提交于 2019-11-29 11:03:27
for Lock Screen programmatically using Android. I got some good ideas from Stackoverflow previous questions regarding this, and I did some thing well, but when I run that code, there is No Exception and Error. but also , the screen didn't lock. kindly some one point my fault in this code My manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="net.top" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app

How do disable lockscreen in android?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 10:53:17
I have my app registered as device administrator, with the appropriate lock screen permissions. I can access the method to lock the device, but cannot disable lockscreen. Is there an API method available that will disable lock? Jorgesys Is there an API method available that will disable lock? NO this is not supported, for security reasons. all of that stuff was deprecated Disable/Delay Android Lock Screen Programmatically Android: remove or disable programmatically the Lock Screen on Samsung Galaxy S2 device 来源: https://stackoverflow.com/questions/21632217/how-do-disable-lockscreen-in-android

How to lock screen in portrait/landscape in iPhone?

一世执手 提交于 2019-11-29 08:48:41
My Application supports all orientation but in few cases i want to lock the screen in portrait/landscape mode. In my Application i have two kind of pdf document. one is in portrait document and other is landscape document . i want to open portrait document in portrait view only, and landscape document in landscape view only. i want to do like this: if my application is open in landscape view and i click on the portrait document so it must rotate in portrait view and same like this for landscape if my application is open in portrait view and when i click on the landscape document it must be

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

不想你离开。 提交于 2019-11-29 08:08:06
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 Browser on double tapping. From the log, I can see ActivityManager receives the intent, and tries to start

What's the difference between isDeviceLocked and isKeyguardSecure in android's KeyguardManager?

余生颓废 提交于 2019-11-29 07:05:32
Below is excerpted from http://developer.android.com/reference/android/app/KeyguardManager.html public boolean isDeviceLocked () Returns whether the device is currently locked and requires a PIN, pattern or password to unlock. Returns true if unlocking the device currently requires a PIN, pattern or password. public boolean isKeyguardSecure () Return whether the keyguard requires a password to unlock. Returns true if keyguard is secure. What's the difference between isDeviceLocked and isKeyguardSecure ? public boolean isDeviceLocked () This method takes the current UI state of the Lockscreen

Set lockscreen to “None” programmatically?

ⅰ亾dé卋堺 提交于 2019-11-29 06:43:22
问题 I have the requirement to disable the lock screen and set the lock screen type to "None". My device is rooted (can run with SU permission) + can run as a system application with system permissions (under /system/app). I have tried a few things to no avail. Try 1 This seems to be deprecated and not working. KeyguardManager manager = (KeyguardManager) this.getSystemService(KEYGUARD_SERVICE); KeyguardLock lock = manager.newKeyguardLock("abc"); lock.disableKeyguard(); Try 2 This didn't work