keyguard

How to start a activity from a broadcast receiver when the screen is locked in Android Q

淺唱寂寞╮ 提交于 2021-01-28 02:20:42
问题 I am trying to implement an alarm based application in Android Q using a broadcast receiver. I am running a foreground service using notification for triggering the alarm broadcast receiver. The service is working fine and it is also triggering the broadcast receiver. If we close the application or lock the screen after setting an alarm, the service will be running in the foreground with a notification. When the alarm broadcast is called I am trying to open a new activity when the screen is

MIUI Permission Denied Activity KeyguardLocked

限于喜欢 提交于 2020-07-05 08:08:54
问题 When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for while, and I think I've finally found the source of it. There is a line in logs: D/com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity KeyguardLocked: Intent { flg=0x14010000 cmp=com.trueconf.videochat/com.trueconf.gui.activities.Call (has extras) } pkg : com

MIUI Permission Denied Activity KeyguardLocked

帅比萌擦擦* 提交于 2020-07-05 08:07:30
问题 When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for while, and I think I've finally found the source of it. There is a line in logs: D/com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity KeyguardLocked: Intent { flg=0x14010000 cmp=com.trueconf.videochat/com.trueconf.gui.activities.Call (has extras) } pkg : com

MIUI Permission Denied Activity KeyguardLocked

廉价感情. 提交于 2020-07-05 08:07:29
问题 When application is in background and screen is locked,I'm unable to start activity, there is no exception or warning, onCreate() is just not called. I've been struggling against this problem for while, and I think I've finally found the source of it. There is a line in logs: D/com.android.server.am.ExtraActivityManagerService: MIUILOG- Permission Denied Activity KeyguardLocked: Intent { flg=0x14010000 cmp=com.trueconf.videochat/com.trueconf.gui.activities.Call (has extras) } pkg : com

Could not re-enable the KeyGaurd once disabled it

妖精的绣舞 提交于 2019-12-24 01:06:57
问题 I have write below code to toggle the KeyGaurd of my android phone using a toggle button. but I am facing an strange behavior. it disables the keygaurd successfully but. not re-enabling. btnToggleLock.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (btnToggleLock.isChecked()) { toast.cancel(); toast.setText("Unlocked"); toast.show(); Log.i("Unlocked", "If"); KeyguardManager myKeyGuard = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);

With security keyguard active transition between activities is weird

耗尽温柔 提交于 2019-12-22 10:45:15
问题 I have my main activity A and when the user presses a button i open another activity B. But when this happens B doesn't just appear on top of A: A disappears secure keyguard shows up B appears And when i get rid of B the same thing happens. This is annoying because there's a lot of flickering with no real purpose on the screen. Is there any way to achieve direct transition from A to B while keyguard is active without merging the 2 activities into 1? Here is what i'm doing in onCreate for both

What is the keyguard in Android?

不打扰是莪最后的温柔 提交于 2019-12-18 11:38:01
问题 I googled it and couldn't find a definition. As usual the Android documentation was very "illuminating". 回答1: In a nutshell, it is your lockscreen. PIN, pattern, face, password locks or the default lock (slide to unlock), but it is your lock screen. 回答2: Keyguard basically refers to the code that handles the unlocking of the phone. it's like the keypad lock on your nokia phone a few years back just with the utility on a touchscreen. you can find more info it you look in android/app or com

How to Disable Keyguard and display an activity to the user when receiver of SCREEN_ON is triggered?

对着背影说爱祢 提交于 2019-12-18 11:33:26
问题 How can I disable the keyguard when a broadcast receiver is activated by screen_on, so that when it occurs the user sees an activity that I have started behind it? (The activity is running already...) I have been trying the following code from a broadcast receiver triggered by screen off... KeyguardManager myKeyGuard = (KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE); myLock = myKeyGuard.newKeyguardLock(); myLock.disableKeyguard(); It doesn't seem to be working though as it is.

Activity Alarm do not turn on screen in Sony Xperia P when alarm played

做~自己de王妃 提交于 2019-12-13 02:41:55
问题 My alarm program on Android does not work on many Samsung and HTC devices; it does not turn on the screen and does not play alarm until the screen is manually turned on. This problem is in Sony Xperia P and Huawei Honor phone... I use any thing that I think solve my problem in my code, but it isn't fixed! :( This is my code: try { // baraye roshan kardane safe va roshan negah dashtane oon dar Huawei honor PowerManager mPowerManager = (PowerManager) PlayAlarmActivity.this.getSystemService