package app.test;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.widget.VideoView;
public class Test extends Activity {
VideoView vv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
vv = (VideoView) this.findViewById(R.id.VideoView);
Uri videoUri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+ "/Test.m4v");
// Uri videoUri = Uri.parse(Environment.getExternalStorageDirectory().getPath() + "/Test.m4v");
vv.setVideoURI(videoUri);
vv.start();
}
}
//main.xml
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>