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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -