Skip to main content

Posts

Showing posts with the label videoview

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