Questions tagged [keyguard]

This mobile phone feature allows the user to disable (lock) the keys so that a number will not accidentally be dialed while the phone is in your pocket or purse. A special key combination, unlikely to be pressed accidentally, is typically used to unlock the keys.

147 questions
0
votes
1 answer

java.lang.IllegalAccessError when trying to access static function of an Android internal app

I'm trying to write an app that is able to access the Android Keyguard app (the system app that holds the "lock screen"). I tried using reflection to get a reference to the running KeyguardUpdateMonitor instance, but so far, I've only received an…
0
votes
1 answer

Enable Keyguard without locking the screen immediately?

In my app I disabled the visible keyguard screen with if (mKkeyguardLock == null) { mKkeyguardLock = ((KeyguardManager)getSystemService("keyguard")).newKeyguardLock("tag"); } mKkeyguardLock.disableKeyguard(); Then I reactivated the…
softwaresupply
  • 1,908
  • 3
  • 20
  • 34
0
votes
1 answer

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

this question have no answer till now ??? 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…
user3623824
  • 193
  • 3
  • 13
0
votes
1 answer

Android 5.0 Lollipop dismiss secure lock keyguard

I have an activity that is correctly shown in front of the keyboard when an alarm goes off. Everything works fine, I set the following…
0
votes
1 answer

Why is Keyguard not being Re-enabled?

I have a Service that does background video recording, during which time I disable the Keyguard. When I want to stop recording I stop the service and OnDestroy() is called. I can see in my trace that ReenableKeyguard() is called. However, the…
DaveDev
  • 41,155
  • 72
  • 223
  • 385
0
votes
0 answers

Android keyguard widget not displayed

I am working on a widget that needs to be displayed on keyguard, so here is my widget info :
JDenais
  • 2,956
  • 2
  • 21
  • 30
0
votes
1 answer

Disabled Keyguard Lock and turn screen on and keep it on, in Android programming

i wrote an android alarm program. it work properly in many devices but in some device when the screen in on the alarm activity open and alarm work properly, but in some device it is not work when the screen is off. please help me in write code for…
Muhammad Ali
  • 720
  • 8
  • 21
0
votes
1 answer

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

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…
Muhammad Ali
  • 720
  • 8
  • 21
0
votes
1 answer

IntentService and locked screen

I need to show some information in the Dialog or something same via IntentService. This dialog should be shown at the locked screen and wake up the phone if it has been locked. If it's possible and how can I do something like in WhatsApp application…
0
votes
1 answer

Disable Keyguard and START STICKY not working with Android for BlackBerry

Im trying to port an android app to BB and Im having some issues with a few things. First off, when this app starts it creates a service that listens for certain events whether the application is in foreground or background. If the service is…
0
votes
0 answers

Contol mediaplayer from keyguard

I need control mediaplayer application from keyguard (lock screen). notification playing song play/pause control album image preview But i don't know how. public static void putNotification(Context mcontent, String text) { Intent resultIntent…
0
votes
1 answer

Activity start from sleep mode immediately close?

I have an app wich is a kind of alarmclock. I have a weird issue. The principle is simple : The alarmmanager send a broadcast that will start a service and an activity. The service vibrates the phone for 10s and then kill the activity and…
user1391967
  • 497
  • 1
  • 6
  • 13
0
votes
1 answer

How to wake up android device from sleep and play a video

I want to wake up the device and play a video. Here is my code snippet to wake up and disable key guard. pm = (PowerManager) getApplicationContext().getSystemService( Context.POWER_SERVICE); keyguardManager = (KeyguardManager)…
vidulaJ
  • 1,232
  • 1
  • 16
  • 31
0
votes
0 answers

how can i replace keyguardmanager

I have a problem about making lockscreen. The developer site recommends to use one of this methods Method: private void setFlag(){ getWindow().addFlags( WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | …
0
votes
1 answer

re-enable keyguard when screen turns off

This may seem similar to other questions, but I have been looking for a while now and haven't found a solution that works in my particular case. My app's BroadcastReceiver currently acquires a full wakelock, disables the keyguard, then starts…
1 2 3
9
10