Select to view content in your preferred language

Map not visisble

1812
5
05-16-2012 11:23 PM
shafitrumboo
Occasional Contributor
Dear All,

I followed every step mentioned in http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/#/Hello_World_Map/011900000005000000/
But I'm not able to see map. It's just Black screen. Please see the attached screen
0 Kudos
5 Replies
AndyGup
Esri Regular Contributor
Did you see any errors in the project or Logcat? Usually if an app doesn't load in the emulator there are either errors in the project, or errors that occurred during loading.

-Andy
0 Kudos
shafitrumboo
Occasional Contributor
In the console I can see

[2012-05-28 11:42:00 - helloworld] ------------------------------
[2012-05-28 11:42:00 - helloworld] Android Launch!
[2012-05-28 11:42:00 - helloworld] adb is running normally.
[2012-05-28 11:42:00 - helloworld] Performing com.esri.android.samples.helloworld.HelloworldActivity activity launch
[2012-05-28 11:42:00 - helloworld] Automatic Target Mode: launching new emulator with compatible AVD 'AVD-4'
[2012-05-28 11:42:00 - helloworld] Launching a new emulator with Virtual Device 'AVD-4'
[2012-05-28 11:42:01 - Emulator] creating window 27 27 480 800
[2012-05-28 11:42:04 - helloworld] New emulator found: emulator-5554
[2012-05-28 11:42:04 - helloworld] Waiting for HOME ('android.process.acore') to be launched...
0 Kudos
AndyGup
Esri Regular Contributor
Shafri, do you have Logcat installed? It will show any errors thrown by the emulator (or phone). Since the title bar of the app didn't even load I would expect some sort of an error to show up in Logcat.

Also make sure you have v1.1.1 of our SDK.

-Andy
0 Kudos
shafitrumboo
Occasional Contributor
Shafri, do you have Logcat installed? It will show any errors thrown by the emulator (or phone). Since the title bar of the app didn't even load I would expect some sort of an error to show up in Logcat.

Also make sure you have v1.1.1 of our SDK.

-Andy



There are many errors let me start with first one below

Netd Unable to bind netlink socket: No such file or directory
Netd Unable to open quota2 logging socket

Please let me know do I need to connect android phone to machine also.
0 Kudos
AndyGup
Esri Regular Contributor
I think that error has something to do with emulator not working right. One possibility is to verify that your android:minSdkVersion is set correctly in the AndroidManifest.xml file, as compared to the Android OS version you are using: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html. Also, make sure to "clean" your project.

And, here's a good blog post for using ArcGIS Runtime SDK for Android v1.1.x with an emulator: http://blogs.esri.com/esri/arcgis/2012/05/02/arcgis-runtime-sdk-for-android-v1-1-supports-android-em...

In regards to connecting your phone to your development machine, yes, that's typically the best way to get started. You will most likely need to install device drivers for your phone: http://developer.android.com/sdk/win-usb.html

-Andy
0 Kudos