Posts Tagged Android

Android - binding to the Music app service to find currently playing song

For an Android app I’m working on I need to find out what song, if any, is playing in the background on the device. Turns out there’s no documented way to do this on Android - but it also turns out that using an open source platform is great. After a few hours of poking around I had a working proof of concept, and I’m sure someone more familiar with Android would’ve figured it out much faster.

IMPORTANT: I’m using an undocumented interface. While this works on Android 1.5R3 and T-Mobile G1 (HTC Magic), and likely on other versions/devices, there is no guarantee it’ll keep working in future releases - use at your own risk.

Read the rest of this entry »

, ,

14 Comments