I'm following the camera photo sample from here: http://docs.xamarin.com/recipes/android/other_ux/camera_intent/take_a_picture_and_save_using_camera_app
The issueI got is the _file variable is always null!! the _dir variable is ok. Where I'm wrong ? Java.IO.File_file; Java.IO.File_dir; privatevoidTakeAPicture(objectsender,EventArgseventArgs) { Intentintent=newIntent(MediaStore.ActionImageCapture); _file=newJava.IO.File(_dir,String.Format("myPhoto_{0}.jpg",Guid.NewGuid())); intent.PutExtra(MediaStore.ExtraOutput,Android.Net.Uri.FromFile(_file)); StartActivityForResult(intent,100); } ........... ........... protectedoverridevoidOnActivityResult(intrequestCode,ResultresultCode,Intentdata) { base.OnActivityResult(requestCode,resultCode,data); if(requestCode==100&&resultCode==Result.Ok) { if(_file!=null) <----------- Is always False!!!
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid