The above code example simply displays a toast message indicating the success or otherwise of the recording intent session. In the event of a successful recording, the path to the stored video file is displayed.
 
The above code example simply displays a toast message indicating the success or otherwise of the recording intent session. In the event of a successful recording, the path to the stored video file is displayed.
   −
When executed, the video capture intent (Figure 46-1) will launch and provide the user the opportunity to record video.
+
When executed, the video capture intent (Figure 48-1) will launch and provide the user the opportunity to record video.
 
   
 
   
    
[[Image:android_nexus7_video_intent.png|The Android camera intent in action]]
 
[[Image:android_nexus7_video_intent.png|The Android camera intent in action]]
   −
Figure 46-1
+
Figure 48-1
    
== Calling the Image Capture Intent ==
 
== Calling the Image Capture Intent ==
 
In the remainder of this chapter, a very simple application will be created to demonstrate the use of the video capture intent. The application will consist of a single button which, when touched by the user, will launch the video capture intent. Once video has been recorded and the video capture intent dismissed, the application will simply display the path to the video file as a Toast message. The VideoPlayer application created in the previous chapter may then be modified to play back the recorded video.
 
In the remainder of this chapter, a very simple application will be created to demonstrate the use of the video capture intent. The application will consist of a single button which, when touched by the user, will launch the video capture intent. Once video has been recorded and the video capture intent dismissed, the application will simply display the path to the video file as a Toast message. The VideoPlayer application created in the previous chapter may then be modified to play back the recorded video.
   Exception encountered, of type "Error"
[9f46745e] /index.php?title=Video_Recording_and_Image_Capture_using_Camera_Intents_-_An_Android_Studio_Example&diff=17226&oldid=16990 Error from line 434 of /home/techotopia/includes/diff/DairikiDiff.php: Call to undefined function each()
Backtrace:
#0 /home/techotopia/includes/diff/DairikiDiff.php(544): DiffEngine->diag()
#1 /home/techotopia/includes/diff/DairikiDiff.php(344): DiffEngine->compareSeq()
#2 /home/techotopia/includes/diff/DairikiDiff.php(227): DiffEngine->diffLocal()
#3 /home/techotopia/includes/diff/DairikiDiff.php(721): DiffEngine->diff()
#4 /home/techotopia/includes/diff/DairikiDiff.php(859): Diff->__construct()
#5 /home/techotopia/includes/diff/DairikiDiff.php(980): MappedDiff->__construct()
#6 /home/techotopia/includes/diff/TableDiffFormatter.php(194): WordLevelDiff->__construct()
#7 /home/techotopia/includes/diff/DiffFormatter.php(140): TableDiffFormatter->changed()
#8 /home/techotopia/includes/diff/DiffFormatter.php(82): DiffFormatter->block()
#9 /home/techotopia/includes/diff/DifferenceEngine.php(881): DiffFormatter->format()
#10 /home/techotopia/includes/diff/DifferenceEngine.php(797): DifferenceEngine->generateTextDiffBody()
#11 /home/techotopia/includes/diff/DifferenceEngine.php(728): DifferenceEngine->generateContentDiffBody()
#12 /home/techotopia/includes/diff/DifferenceEngine.php(662): DifferenceEngine->getDiffBody()
#13 /home/techotopia/includes/diff/DifferenceEngine.php(632): DifferenceEngine->getDiff()
#14 /home/techotopia/includes/diff/DifferenceEngine.php(453): DifferenceEngine->showDiff()
#15 /home/techotopia/includes/page/Article.php(797): DifferenceEngine->showDiffPage()
#16 /home/techotopia/includes/page/Article.php(508): Article->showDiffPage()
#17 /home/techotopia/includes/actions/ViewAction.php(44): Article->view()
#18 /home/techotopia/includes/MediaWiki.php(490): ViewAction->show()
#19 /home/techotopia/includes/MediaWiki.php(287): MediaWiki->performAction()
#20 /home/techotopia/includes/MediaWiki.php(714): MediaWiki->performRequest()
#21 /home/techotopia/includes/MediaWiki.php(508): MediaWiki->main()
#22 /home/techotopia/index.php(41): MediaWiki->run()
#23 {main}