tags:

views:

40

answers:

2
+1  Q: 

Video in ANDROID

How to play a video in android? where do I put my video file? thanks for reading.

A: 

You could put the video in as a raw resource, and then access it using the MediaPlayer.

More on that here:

http://developer.android.com/guide/topics/media/index.html

xil3
The link you provided will play video file from resource but its not videoView
Jim
VideoView vd = (VideoView)findViewById(R.id.Video); vd.setVideoPath("F:/SCHOGINI/work_apps/Video/res/raw/v.3GP"); vd.start();
Jim
the Above code is not working can you explain
Jim
A: 

Look at the 'APIDemos' project in the samples directory of the Android SDK. There is a MediaPlayerDemo.java and a VideoViewDemo.java files which should get you started.

Morrison Chang