[android-developers] Re: Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)

2009-04-02 Thread Henning Schaefer
://code.google.com/p/android-random/ On Feb 16, 5:04 pm, Henning Schaefer henning.schae...@gmail.com wrote: OK, after digging into the android system code, I think I figured out what's wrong here... the class HeadsetObserver from the base system actually sends out this intent with its

[android-developers] Re: what's the Media Button?

2009-02-15 Thread Henning Schaefer
But isn't the MEDIA_BUTTON intent useless, anyway? I tried to hook to it, to absolutely no avail. After trying around for a couple of hours, I decided to compare my source/manifest to the android Music source - then I realized that the receiver class MediaButtonIntentReceiver within the Music

[android-developers] Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)

2009-02-15 Thread Henning Schaefer
Hi all, yesterday, I spent several hours trying to figure out how to capture the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines the receiver, with its intent-filter set to action android:name=android.intent.action.HEADSET_PLUG /. The receiver is working correctly (I verified