Uri uri = Uri.parse("android.resource://" + getPackageName() + "/" +R.raw.rome);
VideoView videoView = (VideoView)this.findViewById(R.id.video);
videoView.setMediaController(new MediaController(this));
videoView.setVideoURI(uri);
videoView.start();
videoView.requestFocus();
网友评论