Hi Guys, i'm building an app that uses Action Image Capture to create a picture and send it to the web. I get in trouble when I return from the Action Image Capture to the activity.
The OnActivityResultCode: private void CapturePicture() { Intent captureIntent = new Intent(MediaStore.ActionImageCapture); StartActivityForResult(captureIntent, _captureIntentCode); } protected override void OnActivityResult (int requestCode, Result resultCode, Intent data) { if(requestCode == _captureIntentCode) { if (resultCode == Result.Ok) { Bitmap image = (Bitmap) data.Extras.Get("data"); _receiptImage.SetImageBitmap(image); } } } There are two main things that happen (in the emulator) and that i need to handle, but don't know how. I also don't know if those two things have any relationship. The problems: 1. When Action Image Capture is closed, the activity returns in landscape-layout, while I opened in portrait-layout. 2. I get the following error: android.view.InflateException: Binary XML file line #1: Error inflating class <unknown> I think that the both have a relation, but i'm not sure and really don't know how to fix this. Even with (double-checked) correct landscape- and portrait-layouts provided this error still pops up. If anyone knows the answer to this problem, I would really appreciate it! Many thanks in advance! -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Action-Image-Capture-Layout-Inflate-Error-tp5712680.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid