Hardware buttons

650 views
Skip to first unread message

Corey

unread,
Jul 13, 2010, 7:41:44 PM7/13/10
to Tasker - Feature Requests
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).

Pent

unread,
Jul 14, 2010, 4:09:29 AM7/14/10
to Tasker - Feature Requests
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

Slipshod

unread,
Jul 14, 2010, 11:38:58 PM7/14/10
to Tasker - Feature Requests
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.

Pent

unread,
Jul 15, 2010, 3:16:16 AM7/15/10
to Tasker - Feature Requests
Oh cool, must try those.

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

Pent

Marcus

unread,
Jul 15, 2010, 3:27:31 PM7/15/10
to Tasker - Feature Requests
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

Pent

unread,
Jul 15, 2010, 3:34:08 PM7/15/10
to Tasker - Feature Requests


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

Pent

unread,
Jul 15, 2010, 3:36:20 PM7/15/10
to Tasker - Feature Requests
> 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

Apostol Apostolov

unread,
Jul 19, 2010, 8:38:28 AM7/19/10
to Tasker - Feature Requests
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).

Pent

unread,
Jul 19, 2010, 11:22:08 AM7/19/10
to Tasker - Feature Requests
> 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

Apostol Apostolov

unread,
Jul 20, 2010, 8:03:47 AM7/20/10
to Tasker - Feature Requests
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?

Pent

unread,
Jul 20, 2010, 8:43:46 AM7/20/10
to Tasker - Feature Requests
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

Apostol Apostolov

unread,
Jul 20, 2010, 10:21:42 AM7/20/10
to Tasker - Feature Requests
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.

Pent

unread,
Jul 20, 2010, 11:20:22 AM7/20/10
to Tasker - Feature Requests
root is on todo, I'll put 'hardware buttons' after the entry. But it's
a minority audience...

Pent

Apostol Apostolov

unread,
Jul 20, 2010, 11:23:39 AM7/20/10
to task...@googlegroups.com
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/)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<->-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Reply all
Reply to author
Forward
0 new messages