Select to view content in your preferred language

Hello World Map sample crashes on 1.1.1 SDK

989
2
Jump to solution
06-13-2012 06:02 PM
StephenQuan
Deactivated User
I recently installed the latest 1.1.1 SDK and started experiencing crashes with the Hello World Map sample.
The device I'm using is a Samsung Galaxy Tab 10.1 with Android 3.2.
I had been running the Hello World Map sample with the 1.0.1 SDK with no issue.

After installing the 1.1.1 SDK I created a new ArcGIS Project for Android and implemented Hello World Map as per http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Hello_World_Map/011900000005000000/

The first time I build, deploy and run the app on my device, it works as intended, with the World_Street_Map layer appearing almost immediately.
I close the app by using the "Back" button.
The second time I run the app, I get a black screen for about 15 seconds and then it **CRASHES**!!!
I, again, close the app by using the "Back" button.
The third time I run the app, I either get a white screen with graticules or I see World_Street_Map layer.
On subsequent runs, I alternate between the second time and third time symptoms.

**Edit** after further investigation, I found that if you avoid using the "Back" button to terminate the app (e.g. tap and hold home to launch the Task Manager manager) then the Hello World Map runs correctly every time. This is a nasty workaround, not something I would want to ask any user to do.
0 Kudos
1 Solution

Accepted Solutions
StephenQuan
Deactivated User
This seems to be rectified in the 2.0.0 SDK.

View solution in original post

0 Kudos
2 Replies
StephenQuan
Deactivated User
These devices DO reproduce the issue:

  • Samsung Galaxy Tab 10.1, Android 3.2

  • Samsung Gio, Android 2.2.1

  • Samsung Nexus S, Android 4.0.4

  • Samsung Tab 7, Android 2.3.3

  • HTC Desire, Android 2.2

  • Emulator with GPU emulation, Android 4.0.3


Additionally I found that by switching the device from Portrait to Landscape mode (and vice versa) will also crash the Hello World Map sample.

Because this is similar to the "Back" button scenario, it feels like a problem with handling the suspend / resume application lifecycle. I've repeated the test against the 1.0.1 SDK on the same devices and the problem doesn't exists so it's a new issue.
0 Kudos
StephenQuan
Deactivated User
This seems to be rectified in the 2.0.0 SDK.
0 Kudos