How to play videos one by one in android from array of video links -
for single video play in android using code snippet working fine me
intent intent= new intent(intent.action_view); intent.setdataandtype(uri.parse(<videolink>), "video/*"); startactivity(intent);
but have number videos in arraylist , want play videos 1 one
what neet change in below code
intent intent= new intent(intent.action_view); intent.setdataandtype(<parse arraylist of videolinks , play 1 one > , "video/*"); startactivity(intent);
make arraylist of ur uris
arraylist<uri> imageuris = new arraylist<uri>(); imageuris.add(imageuri1); // add image uris here imageuris.add(imageuri2);
then,
intent shareintent = new intent(intent.action_view); shareintent.setaction(intent.action_send_multiple); shareintent.putparcelablearraylistextra(intent.extra_stream, imageuris);
Comments
Post a Comment