1

How do I register in manifest an *inner* MEDIA_BUTTON BroadcastReciver?

view story
linux-howto

http://stackoverflow.com – I managed to get my headset buttons get recognized by my app when pressed, but one of the buttons needs to call a method that's in MyCustomActivity. The problem is onReceive's 1st parameter is a Context that cannot be cast to Activity and so I am forced to implement my BroadcastReceiver as an inner class inside MyCustomActivity. So far so good but how do I register this inner MediaButtonEventReceiver in the manifest? For the independent class, this was simple: <receiver android:name=".RemoteControlReceiver"> <intent-filter> <action android:name="android.intent.act (HowTos)