-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xamarin.Forms Android throws "Cannot access a closed Stream" exception #696
Comments
Just add a custom cache key which will always return |
OR you can use |
Great! If it's not too much trouble can you give some usage examples for people not-so-familiar with .NET ashamed |
Just replace |
If you have an image as an embedded resource in the common PCL project and do:
cachedImage.Source = ImageSource.FromResource("ProjectName.Resources.image.png");
in more than one place in the same screen you get the above mentioned exception. The same code works fine in iOS.
Moving the image to the platform projects and getting the image source with
ImageSource.FromFile()
works fine.The text was updated successfully, but these errors were encountered: