[email protected] wrote: > Ok, this worked. > > It would be useful to be able to get this information directly.
ACTION_HEADSET_PLUG is a sticky broadcast. Call registerReceiver(null, new IntentFilter(ACTION_HEADSET_PLUG)) to get the last-broadcast Intent for that action, which will tell you what the headset state is. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

