I'm new to Android development in Java and Eclipse.

I am trying to develop an app which controls the built in Android media player. It should skip tracks when i press volume up/down. How do I control the media player from code?