Android: Rework RunForegroundManager (again)
commit570348f0ffbf86da2b3389cc125c52ed9da2bfad
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Mon, 18 Jul 2011 22:04:08 +0000 (18 22:04 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Mon, 18 Jul 2011 22:04:08 +0000 (18 22:04 +0000)
tree7f82ce1ee193a227b59b9878627c83f0226dca20
parent91a7d8ef09ebbb3384e855c1f40a0d22a12e02ea
Android: Rework RunForegroundManager (again)

Restore pre-r29562 way of doing compatibility and adapt
it to what MediaButtonReceiver looks like. I.e. assume the new API is there,
and fall back to the old API if an exception is raised because the API isn't there.
The old API still needs to be discovered through reflection because it's removed
entirely from Honeycomb.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30165 a1c6a512-1295-4272-9138-f99709370657
android/src/org/rockbox/Helper/Logger.java
android/src/org/rockbox/Helper/MediaButtonReceiver.java
android/src/org/rockbox/Helper/RunForegroundManager.java