VideoView v = (VideoView) findViewById(R.id.VideoView01);
Uri uri = Uri.parse("android.resource://" + getPackageName() + "vid.mp4");
mc = new MediaController(this);
v.setMediaController(mc);
v.setVideoURI(uri);
v.start();
出现一个警告框,提示无法播放视频。您有解决方法吗?
提前致谢