It works like this:
mpintro = MediaPlayer.create(this, Uri.parse(Environment.getExternalStorageDirectory().getPath()+ "/Music/intro.mp3"));
mpintro.setLooping(true);
mpintro.start();
It did not work properly as string filepath…
More Related Contents:
- Writing Text File to SD Card fails
- How to get the internal and external sdcard path in android
- How to create directory automatically on SD card
- Media Player called in state 0, error (-38,0)
- How do I transfer an image from its URL to the SD card?
- Create and Share a File from Internal Storage
- Trying to create a file in Android: open failed: EROFS (Read-only file system)
- MediaPlayer stutters at start of mp3 playback
- Getting access to media player cache
- Play sound on button click android
- Copying raw file into SDCard?
- Stop saving photos using Android native camera
- Android MediaPlayer/VideoView error (1, -2147483648)
- Android MediaPlayer Problems :”Error (-38 , 0) ” and “stop called in state 1”
- SDCard content exist but cant see them
- Getting all the total and available space on Android
- Android: Display Image from SD CARD
- javafxports how to call android native Media Player
- Streaming Audio from A URL in Android using MediaPlayer?
- List all the files from all the folders in a single list
- Android – Save images in an specific folder
- Check if the SDCard is present, boolean is always true
- Android, how do can I get a list of all files in a folder?
- Music player control in notification
- Android: FileObserver monitors only top directory
- How to make a file hidden in android sd card?
- image attachment to a mail.. how in android?
- Android MediaPlayer.Create() returns null
- Streaming Youtube Videos
- MediaPlayer setDataSource failed with status=0x80000000 for Ringtone set by filepath on 2.3.4