Skip to main content

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();





Source: Tips4all

Comments

  1. 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

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?