Tag Info

New answers tagged

0

We don't support those endpoints in the API so you have to honor the REST API and parse the JSON. Secured service endpoints will require you to authenticate on the URL request not with UserCredentials. URL will be in the form of: http://domain.com/ArcGIS/rest/services/folder/service/MapServer?token=mytoken./legend You can find an example of creating a ...


0

Probably map is null after getMap(). it needs some time to get initialised. Try to wait somehow, or put addMarker into onResume().


0

private void drawPolyline(double lat,double lng) { double Pi=Math.PI; double lt=lat; double ln=lng; //Earth’s radius, sphere double R=6378137; double dn = 50; double de = 50; //Coordinate offsets in radians double dLat = dn/R; double dLon = ...


0

I'm not entirely familiar with the android API, but in the JavaScript API, there's a function that allows you to take an array of graphics and extract the bounds of all returned features as if it were a single feature, then use a centerAndZoom() method to zoom the map to the graphic. Maybe the Android API has something similar?


0

Your are not loading the *.jar dependencies in your build: dependencies { // local binary dependency compile fileTree(dir: 'libs', include: ['*.jar']) } We now have EAP release of ArcGIS Runtime SDK for Android samples here and the v10.2.3 EAP library module here


0

Where are you native libs? To compile the *.jar files from your libs folder add the following to your dependencies: // local binary dependency compile fileTree(dir: 'libs', include: ['*.jar']) The best way to work with the ArcGIS Android SDK is to update to v10.2.3 and use our Android SDK EAP library module from Github in your project. We have an EAP ...


0

we can use the inbuilt method loc.getSpeed() method inside the onLocationChanged(Location loc) method of LocationListener. below is the code block: private class MyLocationListener implements LocationListener { public MyLocationListener() { super(); } public void onLocationChanged(Location loc) { if (loc == null) ...


0

Basically you need distance traveled over time whereby the device GPS will be most accurate for distance traveled. You can use the ArcGIS Android LocationDisplayManager.getLocationListener() to get an Android LocationListener to receive notification of when location has changed. You can also get direct access to the current Location with ...


0

AGOL labels are not supported on mobile, e.g. Collector. https://geonet.esri.com/message/392275?sr=search&searchId=6f4adad4-6432-41e9-9877-d41c67d943b9&searchIndex=1#392275



Top 50 recent answers are included