Select to view content in your preferred language

Retrieving Basemap via HTTPS

3335
2
Jump to solution
11-17-2014 01:06 PM
lqdeffx
Deactivated User

I am attempting to connect to my company's GIS web service with no luck.  I have made sure my implementation closely follows the tutorial; although, I've been using ESRI's web service for several weeks now.  I know our GIS web service works as other teams are using iOS & JavaScript and have had no issues connecting to the same URL.  I suspect there is an extra step that I am not finding/understanding in any of the documentation.

Our certificate is officially signed and below is the obstacle.  Thanks in advance for the help!

    java.lang.NullPointerException
            at com.esri.android.map.TiledServiceLayer.initLayer(SourceFile:358)
            at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(SourceFile:199)
            at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(SourceFile:132)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
            at java.util.concurrent.FutureTask.run(FutureTask.java:234)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
            at java.lang.Thread.run(Thread.java:841)
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MengyiGuo
Deactivated User

What's the URL of your TiledServiceLayer?

In your onCreate method in java file, do the following code:

// Retrieve the MapView from XML layout.

mMapView = (MapView) findViewById(R.id.map); 

// Add a base map layer to the MapView.

mMapView.addLayer(new ArcGISTiledMapServiceLayer("your tiled service URL"));

Check this sample if needed.

Add Layer | ArcGIS for Developers

If it doesn't work, send your code to mguo@esri.com and I'll look into it.

View solution in original post

0 Kudos
2 Replies
MengyiGuo
Deactivated User

What's the URL of your TiledServiceLayer?

In your onCreate method in java file, do the following code:

// Retrieve the MapView from XML layout.

mMapView = (MapView) findViewById(R.id.map); 

// Add a base map layer to the MapView.

mMapView.addLayer(new ArcGISTiledMapServiceLayer("your tiled service URL"));

Check this sample if needed.

Add Layer | ArcGIS for Developers

If it doesn't work, send your code to mguo@esri.com and I'll look into it.

0 Kudos
lqdeffx
Deactivated User

Thanks for the response - my problem was between my keyboard and chair.  The service I was attempting to connect to did not support caching.

0 Kudos