You have two choices for integrating a media player within your app:
MediaPlayerIf you want to offer a custom player, use MediaPlayer, a low-level control that gives you more options. You must map the keyboard media keys to the player's controls, and you must handle audio focus.
VideoViewIf you don't want to customize your player's UI and want something thats easier to integrate, you should use VideoView. VideoView is a high-level wrapper around MediaPlayer. It maps media keys to the player controls so you don't have to. You still have to handle audio focus.
You can find MediaPlayer and VideoView demos in Android APIDemos.