Capturing an image from POIDetailFragment
We are now ready to take on the task of capturing a photo. This will involve the following tasks:
- Adding new user interface widgets to initiate capturing a photo and displaying it
- Building a photo intent to navigate to an external camera app to capture a photo
- Processing the results of the photo intent and displaying a photo once it is successfully captured
The following sections describe the details of each step.
Adding UI elements
There are a few new UI elements that we will need to add to support capturing an image; we need an ImageButton
element to initiate the process of capturing an image, and we also need an ImageView
element to display the captured POI image. The ImageButton
widget can be added adjacent ...
Get Xamarin Mobile Application Development for Android - Second Edition 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.