Select to view content in your preferred language

map.addLayer in helloworld sample Failed to pull samples from ArcGIS.com android eclipse

4506
2
12-24-2014 06:23 AM
robelalemu
Deactivated User

ii was trying to run the arcgis helloworld sample on an android device but for some reason my system is having a hard time accessing

map.addLayer(new ArcGISTiledMapServiceLayer("" +

        "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer")); from arcgisonline.com.

so can there be any way that i can run my project with out the need of accessing arcgisonline.i wanted to store my map locally

0 Kudos
2 Replies
EricBader
Honored Contributor

What kind of error are you getting when trying to run the Hello World sample?

0 Kudos
DanO_Neill
Deactivated User

You can learn about creating offline maps here.  But as Eric Bader‌ says, what is the error you are getting.  And what are you trying to do?  The HelloWorld sample loads it's basemap from XML.  If you just want to use the Street Map instead of the Topo map as a basemap  you can make the following change to the XML file I referenced:

// change the following

mapoptions.MapType="Topo"

// to

mapoptions.MapType="Streets"

0 Kudos