I\'m currently trying to create a little remote-app for Android to control a MediaPlayer (like Rythmbox) on my PC.
Most media-players understand the special keys on
VK_MEDIA_PLAY_PAUSE VK_VOLUME_MUTE VK_VOLUME_DOWN VK_MEDIA_NEXT_TRACK VK_MEDIA_PREV_TRACK
Control a Windows apps using Java
To temporarily solve your problem just google "rhythmbox android remote." There are some great projects already.