Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

camera in android

$
0
0

I heve a code to get the camera in xamarin forms android, But I wish to get the image directly after clicking the take photo button without going to the confirmation page, here is a part of my code
App.Instance.ShouldTakePicture += () => { var intent = new Intent(MediaStore.ActionImageCapture); intent.PutExtra(MediaStore.ExtraOutput, Uri.FromFile(file)); StartActivityForResult(intent, 0); };
and this is the result

thnx for the help.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>