Capturing an image from POIDetailActivity

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 display 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 if one was successfully captured

The following sections describe the details of each step.

Adding UI elements

There are a few new UI elements 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 image. We will add the new ImageButton element at the bottom of the View ...

Get Xamarin Mobile Application Development for Android now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.