Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

PictureChooser: Invalid save location #48

Open
andyci opened this issue Jan 14, 2016 · 2 comments
Open

PictureChooser: Invalid save location #48

andyci opened this issue Jan 14, 2016 · 2 comments

Comments

@andyci
Copy link

andyci commented Jan 14, 2016

https://github.com/MvvmCross/MvvmCross-Plugins/blob/master/PictureChooser/MvvmCross.Plugins.PictureChooser.Droid/MvxPictureChooserTask.cs#L88 assumes that the device has external storage which is not always the case. Need to check for this and use internal storage if there is no external storage.

Relevant error message:

Message:

No such file or directory

Stack Trace:

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Android.Runtime.JNIEnv.CallObjectMethod(IntPtr jobject, IntPtr jmethod, Android.Runtime.JValue* parms)
Android.Content.ContentResolver.OpenInputStream(Android.Net.Uri uri)
Cirrious.MvvmCross.Plugins.PictureChooser.Droid.MvxPictureChooserTask.GetMaximumDimension(Android.Content.ContentResolver contentResolver, Android.Net.Uri uri)
Cirrious.MvvmCross.Plugins.PictureChooser.Droid.MvxPictureChooserTask.LoadScaledBitmap(Android.Net.Uri uri)
@fedotovsi
Copy link

fedotovsi commented Jun 2, 2016

Are any progress about it?
It seems fixing is really straightforward, maybe there is something particular reason not to do it otherwise I think I can make pull request. What do you think about?

@Cheesebaron
Copy link
Member

You are welcome to do a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants