simra

Exception with Callout on map after returning from showing another activity

Discussion created by simra on May 8, 2012
Latest reply on May 8, 2012 by agup-esristaff
When there is a Callout on the map and I start another activity, I can not go back to the MapView without crashing the app.
logcat:
05-08 12:32:38.820: W/dalvikvm(12765): threadid=13: thread exiting with uncaught exception (group=0x40a581f8)
05-08 12:32:38.871: E/AndroidRuntime(12765): FATAL EXCEPTION: GLThread 998
05-08 12:32:38.871: E/AndroidRuntime(12765): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4039)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:709)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:268)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.view.View.requestLayout(View.java:12675)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.refresh(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout$CalloutInner.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.Callout.show(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.MapView$1.onMapSurfaceSizeChanged(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at com.esri.android.map.MapSurface.onSurfaceChanged(Unknown Source)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1455)
05-08 12:32:38.871: E/AndroidRuntime(12765):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)


Can anybody reproduce this?

Edit:
This also happens in the official ArcGIS Android App!
Steps:
*Single tab the map to get a Callout.
*Then select map details from the optionsmenu.
*Go back to the MapView with the back button or the ImageButton in the upper left corner.
--> The app crashes.

@esri guys: Should I also post this to the ArcGIS for Android Apps section of this Forum?

Edit 2:
This happens in my App and in the ArcGIS Android App on my phone (Android 4.0.4) and on my tablet (Galaxy Tab 10.1n Android 3.2).

Outcomes