Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Load Crop View after Camera Capture

$
0
0

I'm trying to load the image taken by the camera into the Resize/Crop interface in the emulator and I'm using the following code. I get no errors at all and nothing happens.

Android.Net.Uri imageUri = Android.Net.Uri.Parse(t.Result.Path);
Android.Content.Intent cropIntent = new Android.Content.Intent("com.android.camera.action.CROP");
cropIntent.SetDataAndType(imageUri, "image/*");
cropIntent.PutExtra("crop", "true");
cropIntent.PutExtra("aspectX", 1);
cropIntent.PutExtra("aspectY", 1);
cropIntent.PutExtra("outputX", 1);
cropIntent.PutExtra("outputY", 1);
cropIntent.PutExtra("return-data", true);
StartActivityForResult(cropIntent, 2);

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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