1
0
Fork 0
forked from len0rd/rockbox
foxbox/android/src/org/rockbox
Thomas Martitz 94dacca559 Rework MediaButtonReceiver a bit:
* Get rid of reflection since the lack of methods can be detected via exceptions
 * Use requestAudioFocus/abandonAudioFocus APIs on 2.2+ to play nice with other music apps.
 * Don't unregister the receiver on exit so we can receive media button presses (and startup the service) after idle poweroff (hopefully it's ok if mMediaButtonReceiver is garbage collected)

This should fix that Android calls the standard music app sometimes when those buttons are pressed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29865 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 11:26:18 +00:00
..
Helper Rework MediaButtonReceiver a bit: 2011-05-13 11:26:18 +00:00
widgets Android: Fix widget albumart display on pre-2.2 devices. 2011-03-16 11:38:49 +00:00
RockboxActivity.java Android: Implement app shutdown and thus, sleep timer. 2011-03-16 15:17:24 +00:00
RockboxFramebuffer.java Android: get rid of warnings (no functional changes) 2011-03-11 15:46:02 +00:00
RockboxKeyboardInput.java Android: get rid of warnings (no functional changes) 2011-03-11 15:46:02 +00:00
RockboxPCM.java Only set volume on SYS_VOLUME_CHANGED the first time. Workaround for FS#12034. 2011-03-31 07:04:44 +00:00
RockboxService.java Rework MediaButtonReceiver a bit: 2011-05-13 11:26:18 +00:00
RockboxTelephony.java Android: Change how detecting call state (introduced in r27746) works, from polling to event based. 2010-11-12 21:04:13 +00:00
RockboxYesno.java Android: get rid of warnings (no functional changes) 2011-03-11 15:46:02 +00:00