Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run multiple videos with different VideoViews in one activity in android 2.2?

I am using 3 videoViews for 3 diff. videos in one activity. Now If I am run the program in android 2.3.3 emulator then it runs perfectly but it can run only 1 video in android 2.2 emulator or device.....so how each video can run in android 2.2??? I am using following code to run each video....

VideoView vd = (VideoView)this.findViewById(R.id.VideoViewShow);

     String uri1 = "android.resource://" + getPackageName() + "/" + R.raw.door_175_210;

     vd.setVideoURI(Uri.parse(uri1));
     vd.start();
like image 594
Chirag_CID Avatar asked Oct 25 '11 09:10

Chirag_CID


1 Answers

Known problem playing videos in android 2.2 read this thread: http://androidforums.com/droid-support-troubleshooting/141860-running-2-2-wont-play-some-videos.html

like image 50
m_core Avatar answered Nov 14 '22 23:11

m_core