Summary

Now, we have a working Activity that happily swaps different Fragments in and out of RelativeLayout with an id property of fragmentHolder. Of course, these Fragments don't actually do anything, and we will begin to put this right in the next chapter when we see how to use the device's camera to take pictures. We will then proceed to expand on what we know to add a picture capture function within the CaptureFragment class of Where it's snap.

Get Android Programming for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.