public void getNewStartingPoint() {
path = "/mnt/sdcard/downloads/bluetooth/aabbccdd.mp3";
try {
mp.setDataSource(path);
mp.prepare();
mp.start();
} catch (Exception e) {
Log.e(TAG, "error: " + e.getMessage(), e);
}
}
It seems that all of the tutorials show you how to upload a song from your sdcard, but they're all locations defined by the programmer. I was wondering how could i use songs off of the user's phone that they can decide to preview. Also say for instance I wanted to play a song for only 30 seconds. What method do I use to stop the song from playing after a certain amount of time. i tried using a timer but it doesnt work.
so
question 1. how can the user choose a song from their own sdcard,
question 2. how do you set a limit to the amount of time is playing.