I decided to re-post the info below here from another thread, to have all the code changes needed to make Bluetooth controls under ICS work in one place. Artem told me that Astro Player v. 1.141 already contains code changes suggested above, but in my tests under ICS bluetooth controls still don't work. I asked Seany - the author of Moon+ Reader, about any other change he made in his code to make this work under ICS, and here is what he replied:
Hi, You're welcome, just add one line code to onResume() event of the Activity:
((AudioManager)context.getSystemService(Context.AUDIO_SERVICE)).registerMediaButtonEventReceiver(new ComponentName(context.getPackageName(), OpenFile_Receiver.class.getName()));
and replace registerMediaButtonEventReceiver to unRegisterMediaButtonEventReceiver to onDestoryed() event.
Could you please try it and let me test? I could download an unofficial test version of apk file, either Nova or the classic version, and test afterwards, before you make a full release for everyone.
Greg