Hardware buttons

Showing 1-14 of 14 messages
Hardware buttons Corey 7/13/10 4:41 PM
I'd like to see support for more hardware events: like pressing the
hardware home key (on all phones) or the hardware search key (on
phones like the Moto Droid).
Re: Hardware buttons Pent 7/14/10 1:09 AM
Sorry, Android provides very few possibilities for this. Camera and
Media is about it.

I guess they want the carriers to be able to customize those keys, not
the users.

I have a little idea to get around this in some situations but it's
never going to be simple and convenient.

Pent
Re: Hardware buttons Slipshod 7/14/10 8:38 PM
Pent - you could register as a home launcher so people can set tasker
as the default for the home key - you just have to let the user set a
default home launcher that you can then pass through to.  I have
another app (powerstrip) which does this, and it also registers as the
same type as the "voice search" app, which allows it to be set as
default for a long-click on the hardware search button.
Re: Hardware buttons Pent 7/15/10 12:16 AM
Oh cool, must try those.

I especially want to be able to use that dumb search button on my
Nexus.

Pent
Re: Hardware buttons Marcus 7/15/10 12:27 PM
Could you also add support for volume buttons?
I have a HTC Desire and it has a volume up and down button, but no
camera button.

Would be nice to see an option for 'long press volume up to skip to
next song' and same for volume down.

Or is there anything like a keypress event in the Android SDK?
So you could simply make a bind button method and let the user press
the button that they want to use.


Marcus
Re: Hardware buttons Pent 7/15/10 12:34 PM


On Jul 15, 4:38 am, Slipshod <tash.hept...@gmail.com> wrote:
> Pent - you could register as a home launcher so people can set tasker
> as the default for the home key - you just have to let the user set a

Hey, that would help solve the dodgy app detection too...

Pent
Re: Hardware buttons Pent 7/15/10 12:36 PM
> Could you also add support for volume buttons?
> I have a HTC Desire and it has a volume up and down button, but no
> camera button.

Sorry, just not possible.

You can detect volume changed, set the volume back and do something,
best I can offer right now.

>
> Would be nice to see an option for 'long press volume up to skip to
> next song' and same for volume down.

OS doesn't pass the key along.

> Or is there anything like a keypress event in the Android SDK?
> So you could simply make a bind button method and let the user press
> the button that they want to use.

Would be great, but for security reasons only the running app gets key
events
in Android. Camera and Media buttons are exceptions.

Pent
Re: Hardware buttons Apostol Apostolov 7/19/10 5:38 AM
It would be great if I could override certain buttons in certain apps.
For example, if in Camera app, pressing any volume key takes a photo.
I.e. it sends different event to the app, simulating a different key
(for example, the camera key).
Re: Hardware buttons Pent 7/19/10 8:22 AM
> It would be great if I could override certain buttons in certain apps.
> For example, if in Camera app, pressing any volume key takes a photo.

You can detect volume changed with Event: Variable Set %VOLR, and set
it
back after you've taken the picture.

Not great, I know.

Pent
Re: Hardware buttons Apostol Apostolov 7/20/10 5:03 AM
Basically, is it possible to map the action of one hardware button to
another hardware button while in exact app? I.e. "IF app = Camera THEN
volume key = camera key"? How hard is it to implement?
Re: Hardware buttons Pent 7/20/10 5:43 AM
On Jul 20, 1:03 pm, Apostol Apostolov <rayner...@gmail.com> wrote:
> Basically, is it possible to map the action of one hardware button to
> another hardware button while in exact app? I.e. "IF app = Camera THEN
> volume key = camera key"? How hard is it to implement?

Impossible in an unmodded Android phone.

a) can't detect most hardware buttons
b) can't fake events

Pent
Re: Hardware buttons Apostol Apostolov 7/20/10 7:21 AM
What about rooted phones? Can any features be developed and marked as
"ROOT" and become useful for people who unlock the full potential of
their phones.
Re: Hardware buttons Pent 7/20/10 8:20 AM
root is on todo, I'll put 'hardware buttons' after the entry. But it's
a minority audience...

Pent
Re: Hardware buttons Apostol Apostolov 7/20/10 8:23 AM
Minority yes, but very vocal group of power users who have great word of mouth and willingness to pay for unique features. So while yes, you might sell less per feature compared to normal app feature development, you will get more powerful feedback in the android community. Somehow I think that counts, though you may prove me wrong.

Regards,
Apostol Georgiev Apostolov - RaynerApe
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* UPDATED! Mobile +359 (0)894 369 881
* SKYPE: apoapostolov -=<>=- GTALK: rayn...@gmail.com
* TWITTER: http://twitter.com/apoapostolov (activity: low, 5-8 per day)
* FACEBOOK:http://www.facebook.com/#!/apostolapostolov (activity: high, 10-25 per day, IT-oriented)
* LINKEDIN: http://bg.linkedin.com/in/apostolapostolov
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* Masthead Studios - Lead Game Designer. We play Earthrise. (http://www.play-earthrise.com/)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* Computer Bulgaria - Author. Hardware, Mobiles and Top Games (http://www.newteck.bg/computer/)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-