activity gets killed when the mapview is disposed

Discussion created by Gwen_roy on May 15, 2012
Latest reply on Jan 24, 2013 by agup-esristaff

my activity gets killed when the mapview is disposed.

I have an activity that uses the fragment api.

When there is a mapview on a fragment that is no longer necessary, the whole activity gets killed.

The last thing I can see in LogCat is:

05-15 14:51:18.490: W/EglHelper(3685): finish() tid=10
05-15 14:51:18.490: I/GLMapCore(3685): TexturesManager::releaseGraphicsHardwareResources
05-15 14:51:18.490: E/libEGL(3685): call to OpenGL ES API with no current context (logged once per thread)

after that the activity disappears without a trace.

When I remove the mapview from the fragment, everything works.

Something I noticed in my apps is that the activity is always killed immediately, when the activity isn't active.

Other activities without a mapview don't have this behaviour.

This also kills the activity when I rotate the device.

Any solution for this problem?
Or am i doing something wrong?

kind regards,