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

4413
2
12-24-2014 06:23 AM
robelalemu
New Contributor

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
Occasional Contributor III

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

0 Kudos
DanO_Neill
Occasional Contributor III

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