Catch Volume-Up in background service - General Questions and Answers

Hello,
i am searching for a long time to find a way for catching double-volume-up key press (like a double click) while the screen is off.
My service runs in background even with the screen off, and gathers some gps coordinates, all i want to do is double-press the volume-up button and start/stop my background service without having to actually unlock the screen.
Any directions, samples, guides, proposals etc would be appreciated.
My phone isn't rooted, i need a method that would work on non rooted phones to actually add this functionality in my app if i decide to upload it to market.
Thank you for your time, i hope someone in here will have a solution on that :/

Related

One button ONLY to wake up/unlock

Is there a program so that when your screen is locked, you can assign one button only to wake your screen and have access to the unlock slider? Now, if any of the 4 hard buttons are pressed, it brings up the unlock screen. The problem is, when the phone is in my pocket, any one of the 4 buttons, if accidentally pressed, wakes up the screen. Then of course, I hear my phone in my pocket clicking because the heat from my leg is "tapping" the screen. I just want to have the right hard button wake the phone up.
I cant find an option in the settings for this, nor any threads that discuss it.
Thanks.
I really admire you if you're able to slide the slider with the phone in your pocket.
LOL. No, I dont slide it. Just that when in my pocket, when any one of the 4 hard buttons are pressed(accidentally), i have to press the power button to lock the screen again. A pain in the butt. I what the phone to have only one hard button, not 4, that will shut off the screen when the phone is locked.
I'd like it too.
Maybe even some old school unlocking shortcut that uses hardware key combination (e.g. Home + Vol Down), rather than slide.
The Diamond, or was it the HD, had a button on the top to wake the phone up. That was nice because it was hard to accidentally press that button when it was in your pocket.
I use pocketshield for automatically unlocking my phone when the light sensor senses light coming in. An added benefit for this is that when the phone is in my pocket and I accidentally press any button, the screen will automatically shut itself off again after 10 seconds since there is no incoming light. This tool has really made my life so much easier as it gets rid of the stupid slider thing as well; you can use the lightsensor, the motion sensor and an old school sliding mechanism to unlock your phone- brilliant stuff!
Iarapilot might have meant something else indeed. Most of WM6.1-WM6.5 have a tab in the Start->Settings->Buttons screen that allows you to choose which kind of wake-up you need: waking up by pressing the Pw-ON button or waking up pressing whatever button you want. Sudden power-on is very boring, even thought you can't make your device work as you need to slide the screen. But this is a power comsuption anyway and I wonder why previous version had this chance regardless the home screen features. I do want it!!
I think it's a matter of regkeys, somebody of us who's used to "playing" with regkeys should figure out how this feature could be resumed.
Hope you help us!!
Maybe I didnt make my point very well. I just would like to have only the R hardware key, when pressed, wake up the screen so as to be able to slide to unlock. Not 4 buttons, that when any of those are pressed, wake up the screen.
I also have the problem, I only want to have only one key to wake up not other key
Please help us
Since it's free, I add myself to the request queue Having the screen wake up only on powerbutton press could be useful to reduce to 25% the probabilityof screen turning on by accident when buttons are pressed inside the pocket. Battery saver for sure.
Same here. I've been looking for this since I first got the phone! My old kaiser could do this, surely it wouldn't be too hard to implement on the HD2?
edit: nevermind, posted in the wrong thread
I don't think any software can control that as key presses send electrical signals direct to the chip/power unit, where the "power on" circuits reside. What software can do is turn it off again if not unlocked within a specific amount of time, so battery is saved. Screen touches shouldn't be an issue either if using a lock screen.
les_paulde said:
I use pocketshield for automatically unlocking my phone when the light sensor senses light coming in. An added benefit for this is that when the phone is in my pocket and I accidentally press any button, the screen will automatically shut itself off again after 10 seconds since there is no incoming light. This tool has really made my life so much easier as it gets rid of the stupid slider thing as well; you can use the lightsensor, the motion sensor and an old school sliding mechanism to unlock your phone- brilliant stuff!
Click to expand...
Click to collapse
and doesnt create any problem in normal use? u ask because if u are in call and let some other app start while talk (maybe with earphones) its quietly impossible use portrait mode because left hand always cover light sensor and screen shut down.. its the same with that app?
Did someone already found a solution? I would like such a option too. wake up only by centerbutton for instance....

[Q] Push to talk Apps

I have a upcoming event which I will need to be in constant communication with my peers, but a conference call would not suit the purpose, and I do not own a set of walkie talkies with enough of them. I have however, found a Push To Talk App that I like. There was no setup required, it just uses phone # and data connection /wifi. I tested it with one of my peers who will be at this event, and he had it installed and working in literally no time. However, this app simply sits in the foreground with some info about the "call" and a talk button. However, if you press the sleep button, the screen turns off and the phone locks while the "call" stays active.
I was wondering if anyone knows of a similar PTT app that allows use of a hardware button rather than an on screen talk button to a hardware button, for instance the camera button, or something like that so that it can be used with the phone in locked mode with screen off.

[Q] need to figure out command generated by selecting menu option

hi there all - been going around with trying to figure a solution to my problem for a while now...
my phone - Blade with SS5 2.2 rooted rom
the goal - recording my phone calls.
I have tried many many things till now and posted many questions regarding this - to cut a long story short after trying various apps the only reliable method i found was pressing menu button once call connects. the onscreen popup menu has a record option which i press and it works flawlessly.
now i wanted to automate the process so programmed tasker to do the job. that works as long as i let the macro to run through before i put the phone to my ears. putting it to my ear or touching the screen disrupt the tasker seq...
now if i can figure out the linux command generated by pressing the record option in the menu i might be able to use localexecute to initiate the recording without the need to let the menu popup on screen etc...
any ideas?

[Q] start app with power button

Hello people
New to android programming and I would like to create an app that runs when the power button is pressed (the phone will already be 'on' as such but the screen 'off')
so - one press of the power button to 'activate/show' the screen will make the app run (without requireing the user to unlock the screen please).
is this possible
how do I capture the 'power button press' event and then direct it to run *app xxx*
I thank you for your time in lookin at my question and I sincerely hope I can also one day help others (I have a fairly extensive history online of helping people with windows and hardware issues)

How to automate sliding lockscreen?

Hi.
I was wondering if there's a way to make something that would unlock my phone on an interval? I.e. phone automatically presses power button then swipes to the right three times then presses the power button again every 5 minutes.
for interfacing with android, u could use github.com/kivy/pyjnius This is quite advanced stuff and I am not sure if there is anything for the unlock screen or you can develop an app for likewise feature. Visit : maxtratechnologies.com/mobile-application-development.php

Categories

Resources