I am using this code to play song with the player that the user would select.
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File(ur);
intent.setDataAndType(Uri.fromFile(file), "audio/*");
startActivity(intent);
My question is how can i modify this code to pass multiple song paths, so that when the current song is completed the next one can play. I came across this question on SO: Play multiple songs with Android intent and found out that this can't be done. However the last activity has been a year before so i was wondering is there any hack/support that has been developed during this period for doing this?
Please remember that i am not implementing a music player in my app. i'm just passing the music file's uri to the music player on device.