Android: Rework RunForegroundManager (again)
commit64b5f1c625f500e8837147f31997b7671e724462
authorThomas Martitz <kugel@rockbox.org>
Mon, 18 Jul 2011 22:04:08 +0000 (18 22:04 +0000)
committerThomas Martitz <kugel@rockbox.org>
Mon, 18 Jul 2011 22:04:08 +0000 (18 22:04 +0000)
tree7f82ce1ee193a227b59b9878627c83f0226dca20
parent8fba4fb937332f4125d5fe6aee90e37dc9f68b0e
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