views:

29

answers:

0

Hello,

I would want to know how to launch an activity when long pressing media button. In this case, I don't want to launch the default activity : the media reader, this one must keep lauching when media button has been short pressed.

Hope, I've been explicite.

A.L.

Subsidiary question : Why some hard key, like the search button, can directly launch activity specifying it in the activity attribute of the manifest.xml , and others, like media button, are only mentioned for broadcast action ?