Switch branches/tags
Find file History
Lildan Fix of error preventing build
Resource.Id.picture and Resource.Id.info are dynamically generated as static fields while they must be const in switch-case expressions. Replaced with simple if-elseif. The issue was reported here https://bugzilla.xamarin.com/show_bug.cgi?id=23176
Latest commit d246d24 May 20, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Camera2Basic Fix of error preventing build May 20, 2018
Screenshots Rename android_l to android5.0 Mar 11, 2015
Camera2Basic.sln Updated references to camera2 android feature Oct 4, 2016
Metadata.xml Shorten brief descriptions Apr 23, 2015
Readme.md Rename android_l to android5.0 Mar 11, 2015


Camera2 Basic Sample

This sample demonstrates how to use the new Camera2 APIs to render a preview of a camera's viewport, capture an image and save it to the device's storage.


  • Touch the Picture button to take a photo that will automatically be saved on your device.

  • Touch the info button to find out a little bit more about the app.

  • Requires a device with a rear facing camera

Build Requirements

Using this sample requires a device that is Android L or later and Xamarin.Android 4.17 or later.


Copyright (c) 2005-2008, The Android Open Source Project
Ported to Xamarin.Android by Christopher Blackman