I am in trouble with creating first hello world app

2563
1
11-17-2014 11:23 PM
SalihYalcin
New Contributor III

Hello everyone,

I made my first application using arcgis android sdk but when ı'm launching helloworld app emulator didn't launch the map.

Read all questions and documents..Still didnt find any solution to solve this problem. Here is my ss

2.JPG1.JPG

0 Kudos
1 Reply
MengyiGuo
Occasional Contributor

Could you please post the code in xml as well? Check if you have the mapview in your main.xml:

<!-- MapView layout and initial extent -->

    <com.esri.android.map.MapView

  android:id="@+id/map"

  android:layout_width="fill_parent"

  android:layout_height="fill_parent"

  mapoptions.MapType="Topo"

  mapoptions.center="34.056215, -117.195668"

  mapoptions.ZoomLevel="16">

  </com.esri.android.map.MapView>

And in the java file, use  mMapView = (MapView) findViewById(R.id.map); to retrieve the map and map options from XML layout instead of create a new one.

Let me know if it works.

0 Kudos