I'm trying to let the user pick an image from their library on Android. But when I use the PictureChooser plugin it does not seem to work (anymore)
I've seen this code working, but now it doesn't and I can't figure out why.
var task = Mvx.Resolve<IMvxPictureChooserTask> ();
task.ChoosePictureFromLibrary (1024, 92,
stream => {
MemoryStream ms = new MemoryStream ();
stream.CopyTo (ms);
_currentTarget.ImageBase64 = Convert.ToBase64String (ms.ToArray ());
SaveTarget ();
RaisePropertyChanged (() => TargetImage);
}, () => {
});
My log says the following:
mvx:Warning:1665,79 Warning - activity request code may clash with Mvx code for PickFromFile
mvx:Warning:1665,79 Warning - activity request code may clash with Mvx code for PickFromFile
mvx:Diagnostic:1665,82 OnMvxIntentResultReceived in MvxAndroidTask
mvx:Diagnostic:1665,82 OnMvxIntentResultReceived in MvxAndroidTask
mvx:Diagnostic:1665,83 ProcessMvxIntentResult started...
mvx:Diagnostic:1665,83 ProcessMvxIntentResult started...
mvx:Diagnostic:1665,84 Non-OK result received from MvxIntentResult - Canceled - request was 30001
mvx:Diagnostic:1665,84 Non-OK result received from MvxIntentResult - Canceled - request was 30001
The strange thing is, is that I do get a PictureChooser dialog but at the same time the assumeCancelled action gets called. And when I select an image, nothing happens anymore :(
i'm using mvvmcross 3.5.1