On Fri, Sep 25, 2009 at 7:57 AM, sdphil <[email protected]> wrote: > > okay, first a couple of gripes -- > > gripe 1: why oh why t-mobile/htc did you decide to make a phone with a > non-standard USB/Power connector? I mean seriously, wth!!! just what > the world needs, yet another frigging connector.
The connector on the phone accepts a standard mini USB connector just fine. > gripe 2: what's up with providing a multi-media phone without a > standard 2.5mm headphone jack? it's hard to take you seriously as a > smartphone without a regular headphone jack! > > now that I have those gripes out of the way :), how do you detect when > a user clicks on the button on the headphone connector. the button on > the connector that goes from the non-standard usb plug to the female > headphone jack. It is first delivered to the foreground app as a regular key event. If the app lets it fall through, it is then broadcast as an intent so that background apps can get it too. This is almost impossible to get right when multiple background apps are interested in that button, so I suggest you don't use this feature (it *will* change in the future). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

