Code example for FileDescriptor

0
		 
		try { 
			// works 
		mPlayer.setDataSource("mnt/sdcard/Music/Mix/13 Asleep.mp3");//outputFile);
			 
			FileDescriptor fd = new FileDescriptor();
 
			//mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); 
			//mPlayer.setDataSource(outputFile); 
			System.out.println("MP source set to: " + outputFile);
			 
			 
			mPlayer.setOnPreparedListener(new OnPreparedListener() {
				public void onPrepared(MediaPlayer mp) {
					trackActivity.togglePlayer.setBackgroundResource(R.drawable.mplayer_stop);
					mp.start();
				} 
			}); 
			mPlayer.setOnCompletionListener(new OnCompletionListener() {
				public void onCompletion(MediaPlayer mp) {
					trackActivity.togglePlayer.setBackgroundResource(R.drawable.mplayer_play);