Android Programming: The Big Nerd Ranch Guide by Hardy Brian & Phillips Bill

Android Programming: The Big Nerd Ranch Guide by Hardy Brian & Phillips Bill

Author:Hardy, Brian & Phillips, Bill [Hardy, Brian & Phillips, Bill]
Language: eng
Format: epub, pdf
Tags: Android Programming, Big Nerd Ranch Guides, COM051460
ISBN: 9780321804334
Publisher: Pearson Education
Published: 2013-03-28T14:00:00+00:00


Run CriminalIntent and press the Take! button. In LogCat, create a filter with a CrimeCameraFragment tag to see where your picture landed.

At this point, CrimeCameraFragment lets the user take a picture and save it. Your work with the camera API is done. In the rest of this chapter, you will focus on CrimeFragment and integrating the photo into the rest of the application.

Passing Data Back to CrimeFragment

To give CrimeFragment access to the photo, you are going to pass the filename back from CrimeCameraFragment. Figure 20.5 shows the sequence of events between CrimeFragment and CrimeCameraFragment.

Figure 20.5 CrimeCameraActivity sets a result and an extra



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.