Android :: Handle Lock Screen Button Input For Droid Activity?
Nov 12, 2010
Suppose I have something like an alarm activity which launches the alarm through the lock screen, accomplished via
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
Now, from here I could press the back button to kill the activity, but I also want a press of the lock button to silence the alarm. How would I go about creating a handler for presses of the lock screen button?
View 2 Replies
Nov 2, 2010
I have a TabActivity, and each Tab corresponds to its own Activity. In one of them, in the onCreate method, I use startActivityForResult to show a dialog (specifically, Bump's BumpAPI activity).
code:...............
The problem is that when the screen orientation changes, it tries to create the tab's activity again which makes another BumpAPI dialog, resulting in multiple stacked on top of each other. Do I have a hook into the started activity to cancel the previous one when the orientation changes?
A workaround seems to be to add a button that when clicked, starts the second activity, but that adds an unnecessary step.
Also, I can't fix the screen orientation for the entire tabActivity because some of them require typing and users may want to use their physical keyboards.
View 1 Replies
View Related
Oct 28, 2012
I am plan B and AVG security installed, both don't always work, I have pattern lock on the phone but even in pattern lock mode when i press and hold power button the phone gives me option to shutdown.
If someone steals my phone they will be able to shut it off without unlocking it since holding down power button still works. So is there a way to lock the power button from shutting off phone when the phone is in pattern unlock mode?
View 1 Replies
View Related
Dec 15, 2009
Since the update, I don't have an emergency call button on my lock screen. I don't remember one being there before either. The manual talks about one being there, and I've seen posts about it. Is this an option to turn on?
View 2 Replies
View Related
Jul 26, 2012
My phone was working just fine and randomly the lock button stopped working and the home button brings up the power screen!
View 1 Replies
View Related
Jul 21, 2010
I would like to know what is the right way to handle internationalization for statements with runtime data added to it. For example
1) Your input "xyz" is excellent!
2) You were "4 years" old when you switched from "Barney and Freinds" to "Spongebob" shows.
The double quoted values are user data obtained or calculated at run time. My platforms are primarily Java/Android. A right solution for Western languages are preferred over weaker universal one.
View 3 Replies
View Related
Sep 1, 2010
How handle all input key an touch event incoming to my Android application?
Is any one place where I can catch all this events?
View 2 Replies
View Related
Mar 16, 2010
I'm thinking about using a ViewFlipper for an Wizard like Activity. But I see one problem with this approach. The back button. Will the back button go back to the last shown activity or will the the Viewflipper somehow catch the back button event and only change to the last shown activity?
View 1 Replies
View Related
Aug 22, 2010
I have an onKeyDown event which is only needed for handling the Up and Down hardware keys in my app. For these it returns true, as they are handled. For anything else it returns false which I understand means that the OS should handle them. However, when I press the Back button, my onKeyDown is called and returns false, but there is no other effect. I want/would expect the OS to finish the current Activity and resume the previous one.
View 3 Replies
View Related
Sep 11, 2010
it just flips out goes up and down and the screen cant be touched untill i press the top button and it goes back to the screen lock, i have it rooted and running 2.2 im not all up on what this does should i just reset to og settings?
View 1 Replies
View Related
Feb 4, 2010
I have had my Droid for almost a month now and i love it,,, but there are a couple of really annoying things that it does, and i was wondering if it was just me, or if anyone else has these problems too...
I will hit the unlock button on the top and start to do my pattern, and all the sudden, it says that i lifted my finger... and takes two tries out....
I will hit the unlock button and start my pattern and the screen will shut off like there is no activity and i will have to hit the unlock button again, and start over.
Oh and how about this, tried both handcent and stock messaging app, i regularly have periods of long delay from both receiving and sending text messages, i will be sending one text and get a text sending overload message also.... then i will have periods of sending and receiving the exact same text 10-15 times in a row.... this happens all of the time and its extremely annoying....
View 3 Replies
View Related
Oct 9, 2010
I have a pattern unlock on my Samsung Galaxy S 19000. If I want to lock my screen manually I simply press the power button briefly which works fine. I now use a skin on my phone which doesn't allow for easy access to this power button so I'm wondering if there's an app that I can use to lock my phone screen without having to press the power button. I have looked at "lock 2.0", however, it seems to be more for actually unlocking the screen.
View 4 Replies
View Related
May 14, 2010
I would like to perform an activity at the key guard screen, but the only way I can find to do so is to disable the key guard, do my activity, then re enable the key guard. This would be ok if it didn't cause the key guard screen to flash off and on (disable makes it disappear then re enable brings it back). I am wondering how I can perform an activity with it still being displayed? Kinda like how when the alarm goes off it shows a pop-up which is displayed over the key-guard screen?
View 1 Replies
View Related
Jul 22, 2010
Found using these two apps from the market allows me to hardly ever have to use the power button (only for power off/on situations). Which is great because I know there has been reported issues of the button sinking in.
Screen Off: $0.99
No Lock: free
View 31 Replies
View Related
Mar 3, 2013
Is there a way to do that on the stock Android lock screen? Stock samsung firmware on note 2
GT-N7100
View 9 Replies
View Related
Dec 22, 2012
There seems to be plenty of adequate little homescreen button apps to lock the screen. but they turn it off at the same time. I want the option for both. I already have one that turns the screen off, now I want a different one that just brings up the ICS default lock screen (the one that shows up just after turning the screen back on or at OS startup - if you set it to have lock security).
I'll put em in the icon group on the home screen.
It's cos sometimes I just need to lock the screen while carrying the phone for a short while [and don't want to touch something while grabbing it by the screen], then easily [without having to press the power button] unlock phone again to resume using it once I'm done carrying.
Without having to be its own lock screen app -
View 1 Replies
View Related
Aug 4, 2010
I just got the vibrant about a week ago, and so far no major issues. Still fumbling around in the apps market for the good stuff. One thing I found annoying was having to press the power/unlock button and then swiping the screen to unlock the phone every time, is there anything in the market or some setting to avoid pressing the button and just swiping the screen or possibly using the touch buttons on the front of the phone then swiping?
View 2 Replies
View Related
Mar 17, 2010
I just got my Milestone from Telus here in Canada. When the phone powers up, two 'sliding' buttons appear. A green one on the left to unlock the phone, and another one on the right to silence it.
When holding the phone in one hand, the green unlock button is too low on the screen for a comfortable flick with the thumb. If it were on the upper third of the screen instead of the lower third, this would be much easier.
Any way to move it higher on the screen?
View 1 Replies
View Related
Sep 26, 2012
home button and front screen won't lock?
View 1 Replies
View Related
Mar 20, 2012
Any app that has secure lock screen like with pattern or code unlock, but also has access to camera app straight from lock screen without unlocking the phone... though there would be another security needs to be applied that if the phone is used by someone else, they can use it to take pictures or videos but cannot go into gallery or review other data if the camera is activated by straight from unlock screen....and then, if one needs to access the gallery from there.. they need to draw secured pattern or key in the unlock code....
View 9 Replies
View Related
Sep 23, 2011
I have 2 year old kid he loves to watch cartoons or videos.
Is there any which blocks the touch and home button. On the iphone there was a application like Incarcer where you had to press volume and down to enable home and touch again.
Is there anything similar for an android phone. Got a galaxy s1 9100 and galaxy s 9000.
View 5 Replies
View Related
Aug 29, 2010
Okay so all of a sudden yesterday the lock button on my Samsung Moment kind of stopped working. When you press the hang up button on the phone, its supposed to lock. If you hold the hang up button it brings up a menu for power off, sounds off and airplane mode.
For some reason when I press the hang up button to lock the phone, it doesnt work but when I press and hold the hang up button, the menu thats supposed to pop up does.
If the button semi works I cant see it being a problem with the button. My friend says its a software glitch but it worked fine for months and then all of a sudden yesterday morning it stopped working. I HAVE NOT updated the phone or anything recently.
View 26 Replies
View Related
Jul 16, 2010
Is there such a widget/app that can place a button on the home screen to instantly lock the screen instead of pressing the power button.
The only one I could find takes 6 seconds before it locks.
View 6 Replies
View Related
Oct 25, 2013
I'm searching a mod to install on my galaxy s4 i9505 that can add a little button on the top edge of statusbar that can lock the screen if pressed.
Something like the attachment.
On android 4.2.2 there is 3minit framework, but I can't find a similar mod for android 4.3.
View 6 Replies
View Related
Jan 29, 2012
My kid keep switching my phone off ...
Even when I have a password or pattern ..the power button work..
I can edit any file in android system if required .
View 1 Replies
View Related
Feb 8, 2010
Is it possible to start an activity from the built-in Camera app after the user touches the on-screen Capture button?
View 4 Replies
View Related
Aug 13, 2010
We are experiencing this strange problem. If I press screen off button When my activity is running, its again starting a new activity. If I press the screen off button again and unlock the phone, it again starts a new activity. So in total there are 2 new activities getting created for one screen off and on.
View 5 Replies
View Related
Nov 18, 2010
I am working on an application where I need to go to the next Screen form the Main Actvity when I Click on the Image Button of the Main Activity Screen. I had searched a bit on Net regarding this and found something like the OnClickListener method. I am still stuck for what exactly I want to do actually.
View 3 Replies
View Related
Aug 31, 2010
Has anyone worked out if it is possible to set one of the buttons on the bottom of the Desire to bring up the lock screen rather than using the power button at the top. Only just got the phone 3 days ago but this is (sor far) the only niggle I have.
View 11 Replies
View Related
May 23, 2014
Q:- Lock and unlock screen without power button by using three capacitive button
I want to do this in following phones :-
Micromax Canvas Magnus A117
Micromax Canvas HD A116
Micromax Canvas 4 A210
How to do that! ? I done in htc one v primo using cyanogenmod since 2yrs ago ! but i dont know how to do that in this phones?
View 5 Replies
View Related