docs: Fixed variable naming error in code snippet for viewing a video
The code snippet in the "View the Video" section now uses consistent naming for the variable that represents the Intent containing the URI of the video to play. Bug: 25068669 Change-Id: Ibb1a454d647e8ab6cccfe9a8b0efd4fb5c986290
This commit is contained in:
@@ -108,7 +108,7 @@ retrieves this video and displays it in a {@link android.widget.VideoView}.</p>
|
||||
|
||||
<pre>
|
||||
@Override
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
|
||||
if (requestCode == REQUEST_VIDEO_CAPTURE && resultCode == RESULT_OK) {
|
||||
Uri videoUri = intent.getData();
|
||||
mVideoView.setVideoURI(videoUri);
|
||||
|
||||
Reference in New Issue
Block a user