public static Intent newPlayMediaIntent ( Uri uri , String type ) { Intent intent = new Intent ( Intent . ACTION_VIEW ) ; intent . setDataAndType ( uri , type ) ; return intent ; }
Open the media player to play the given media Uri