Directory for storing audio files in Android

The audio files can be moved to a folder named raw which should be created in the res folder.

It can be accessed by the following code:

MediaPlayer mPlayer = MediaPlayer.create(context, R.raw.soundclip);
mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mPlayer.start();

This is the easiest way. You can try it..

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)