Select to view content in your preferred language

ArcGISDynamicMapServiceLayer alternative in API 100

1327
2
Jump to solution
12-08-2016 12:29 PM
SharjeelAhmed
Deactivated User

Previously I used following code for adding Layers:

UserCredentials userCredentials = new UserCredentials();
userCredentials.setUserAccount("Username", "Password");
dynamicLayer = new ArcGISDynamicMapServiceLayer(url,null, userCredentials, true);
mMapView.addLayer(dynamicLayer);

What's the alternative of adding ArcGISDynamicMapServiceLayer in API 100 as this Layer class doesn't exist in new API?
0 Kudos
1 Solution

Accepted Solutions
AlexanderNohe1
Honored Contributor

I believe you want to use the ArcGISMapImageLayer:

ArcGISMapImageLayer| arcgis-android 

Have you tried using this?  Does it work for you?

View solution in original post

0 Kudos
2 Replies
AlexanderNohe1
Honored Contributor

I believe you want to use the ArcGISMapImageLayer:

ArcGISMapImageLayer| arcgis-android 

Have you tried using this?  Does it work for you?

0 Kudos
SharjeelAhmed
Deactivated User

That worked. Thanks.

0 Kudos