Android Question Deinitializing google maps ?

tufanv

Expert
Licensed User
Longtime User
Hello,

After I have added google maps in two different panels in my app, some times my app crashes due to out of memory error . I couldnt find a way to deinitialize them . Or is there any way to stop google maps running in background when users are not using them ( when panels are invisible ) =

Thank you
 

tufanv

Expert
Licensed User
Longtime User
Dear Erel
java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:903)
at android.graphics.Bitmap.createBitmap(Bitmap.java:880)
at android.graphics.Bitmap.createBitmap(Bitmap.java:847)
at com.google.maps.api.android.lib6.gmm6.o.c.l.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.c.o.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.c.o.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.c.o.b(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.c.b.al.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.c.b.at.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.x.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.l.a(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.l.b(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.dc.k(Unknown Source)
at com.google.maps.api.android.lib6.gmm6.o.dc.run(Unknown Source)
Can you post the full error message from the logs?
 
Upvote 0
Top