android中播放本地raw下的文件test.mp4
Uri uri = Uri.parse("android.resource://com.example.myapp/" + R.raw.my_resource");
google地址
http://developer.android.com/reference/android/content/ContentResolver.html
VideoView videoView = new VideoView(this); videoView.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.test)); videoView.start(); setContentView(videoView);