lockscreen

Lockscreen is displayed between activities

你。 提交于 2019-12-04 02:09:21
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. public class MainActivity extends Activity { private Handler h = new Handler(); @Override protected void

Full screen transparent activity (no title & status bar) doesn't work… why?

一个人想着一个人 提交于 2019-12-04 00:01:41
I'm making a custom lock screen. The lock screen is an activity which I launch by the time the screen goes off. However, I can't make the activity be both transparent & fullscreen. The Status bar keeps showing. Here's what I do in the manifest: <activity android:name=".activities.LockScreenActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/> I'm also adding these extras in activit's onCreate: requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.lock_screen); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager

Android Lollipop - Bypass lock screen for popup activity

血红的双手。 提交于 2019-12-03 22:19:55
I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop everything worked as expected. But now the popup Activity2 is not visible unless the device is manually

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

三世轮回 提交于 2019-12-03 18:03:28
问题 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

Setting iOS background/lockscreen image programmatically?

梦想的初衷 提交于 2019-12-03 06:43:09
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; but it appears to be missing in 4.3 and above. Is there anything that I'm missing? I found this in the

How to perform notification-action (click) on lock-screen?

旧巷老猫 提交于 2019-12-02 16:18:35
TL;DR How can I make a notification that does some work from the lock-screen without unlocking? After clicking an action, a button on the notification or just the complete notification, I want to do an API call (without typing my unlock code) Details Goal Based on the answer on this question I tried to make a notification with an action that works on the lockscreen without unlocking the device. The action is something that doesn't need any further interface or interaction (think 'send an API request'). Status The notification and click do work with an unlocked device. However, when locked I

Android: Espresso test for lock screen/main screen

你。 提交于 2019-12-02 11:22:28
问题 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

how to bring up lock screen in android?

你。 提交于 2019-12-02 11:06:23
问题 I want to bring up the lock screen of the device if a button is clicked. I searched a lot and know that could be done by DevicePolicyManager but don't know how to do that. I also found lots of examples but neither of them brought up the lock screen(with no error)(e.g. this or this) how to lock device using DevicePolicyManager ? 回答1: I also found lots of examples but neither of them brought up the lock screen(with no error)(e.g. this or this) That second link should work. It looks similar to

Is it still being prohibited changing lock screen(wallpaper) in iPhone OS 3.x?

南楼画角 提交于 2019-12-02 08:20:34
I checked this posting , so it was impossible to do it. But it's old posting, and somebody are saying me there is an app which can change wallpaper(lock screen). Is this allowed now? -- edit -- I'm sorry for my question was unclear. I was asked a programmatic and regular (which can be approved by Apple AppStore) way to change lock-screen wallpaper in my own app. Not for any hacked, jail-breaken devices. As far as I'm aware, you would not be able to change the wallpaper for the device through the SDK, or at least not in a way in which Apple would approve of. I suspect allowing this through the

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

南笙酒味 提交于 2019-12-02 07:13:38
问题 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... 回答1: I don't know how to do it with Qt, but what you are looking for is