O'Reilly logo

Xamarin Mobile Application Development for Android by Mark Reynolds

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required