public void OnClick(View v)
{
switch (v.Id) {
case Resource.Id.picture:
TakePicture ();
break;
case Resource.Id.info:
EventHandler<DialogClickEventArgs> nullHandler = null;
Activity activity = Activity;
if (activity != null) {
new AlertDialog.Builder (activity)
.SetMessage ("This sample demonstrates the basic use of the Camera2 API. ...")
.SetPositiveButton (Android.Resource.String.Ok, nullHandler)
.Show ();
}
break;
}
}