Taking screenshots with the camera
In this recipe, we will use the default camera application in our own application and take advantage of it to save pictures. This is the opposite to the first recipe of this chapter, where we were displaying a feed coming directly from the hardware camera and bypassing the Android default application for the camera.
Create a new solution named
CameraPicture and open it in Xamarin Studio.
How to do it...
- Create another project in the solution created in the first recipe and name it
- Add the following code into your
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" ...