This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Xamarin.Forms[Android] app crashing with Annotations #88
Comments
Hy @andreybel , Could you share a code sample for the issue? Cheers. |
Here is my code sample.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
I'm trying to implement Mapbox in my Xamarin.Forms app and have a problem.
When i'm adding List of Annotations to Map and restart app, i'm getting Exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.Bitmap$Config android.graphics.Bitmap.getConfig()' on a null object reference
My Annotation:
Annotations.Add(new SymbolAnnotation
{
Coordinates = new LatLng(50.4308233, 30.468171),
Id = Guid.NewGuid().ToString(),
Title = "test point",
SubTitle = "test point description",
IconImage = (ImageSource)"ic_pin8.png", // problem is here
IsDraggable = false
});
NOTE: It doesn't happen during first start, only after OnSleep() - OnResume().
Tell me please, where is my mistake?
Thank's!
P.S. problem detected on Android
The text was updated successfully, but these errors were encountered: