POST
|
Hi Jack: You are explicitly loading the `ArcGISMapImageLayer` but not the sublayer. ArcGISMapImageLayer mapImageLayer = new ArcGISMapImageLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer");
mapImageLayer.loadAsync();
mapImageLayer.addDoneLoadingListener(() -> {
final ArcGISMapImageSublayer testSublayer = (ArcGISMapImageSublayer) mMapImageLayer.getSublayers().get(0);
testSublayer.loadAsync();
testSublayer.addDoneLoadingListener(() -> {
ArcGISMapServiceSublayerInfo testInfo = testSublayer.getMapServiceSublayerInfo();
});
});
... View more
10-05-2017
11:31 AM
|
0
|
0
|
438
|
POST
|
Currently we don't support GeoEvent stream services in the Android SDK, we are looking to support in a future version. I did notice that Lynn Carlson, GISP references some success with Android in this post, maybe they can help.
... View more
06-02-2017
04:43 PM
|
1
|
1
|
733
|
POST
|
Yes, this should be posted in the Android SDK forum, judging from your title and exception I am assuming you are attempting to view the MapView in layout design view which is not supported. Can you share your layout xml so we can better review your exception?
... View more
02-16-2017
08:28 AM
|
0
|
1
|
634
|
POST
|
I am happy to hear you are using the Maps App and it is filling your needs! The Maps App uses an Android SearchView, you can use the setQuery() method to set the text in the SearchView from the address in your text message that you send to the app. An example usage is offered below where you can do this in MapFragment.java where/when you pass the intent with the address string: // get the address from intent
String address = intent.getAddress();
// set the search view text
mSearchView.setQuery(address, false);
// clear focus away from search view
mSearchView.clearFocus(); We are active with our GitHub community in the Maps App repo, please do not hesitate to collaborate through our repo as well.
... View more
12-20-2016
09:35 AM
|
0
|
0
|
569
|
POST
|
Can you clarify your question? Are you asking how to build/run the Display Device Location sample?
... View more
12-20-2016
09:16 AM
|
0
|
0
|
334
|
POST
|
Yes you are not passing an accurate objectId in your code. Can you get the objectID field value from the selection? graphicAttributes.put(arcGISFeatureLayer.getObjectIdField, SelectedGraphic.getAttributeValue(arcGISFeatureLayer.getObjectIdField));
... View more
11-06-2015
08:56 AM
|
0
|
1
|
741
|
POST
|
Your Map Service of Points is a dynamic layer so you need to add it in as an ArcGISDynamicMapServiceLayer. A better sample app to get started with is the Hello World sample. You can add your layer to this app by adding the following code snippet to MainActivity.java: mMapView = (MapView)findViewById(R.id.map); // add the following code below ArcGISDynamicMapServiceLayer pointLayer = new ArcGISDynamicMapServiceLayer("http://190.181.6.106:6080/arcgis/rest/services/Sob/FC_APP/MapServer"); mMapView.addLayer(pointLayer); Next update the MapView layout resource, activity_main.xml, to your area of interest with the following: mapoptions.center="-13.894009, -64.962861" mapoptions.ZoomLevel="10" Your map should look similar to the following screenshot:
... View more
11-06-2015
08:25 AM
|
0
|
0
|
385
|
POST
|
Currently we don't support describing the appearance of WMS map layers through style layer descriptors. You are are correctly adding a WMS layer and you can get some information from the layer through the WMSLayerInfo class like legend, sublayers, etc. if supported on the WMS, but unfortunately styling is not supported in the API at this time. I do encourage you to use the ArcGIS Ideas portal to propose support in Runtime SDK's if you want your idea considered for new functionality in future releases.
... View more
11-03-2015
10:56 AM
|
0
|
1
|
776
|
POST
|
Once you have successfully authenticated the app will create the credentials file for you and allow you the option to use the the save credentials the next time you open the app. To authenticate: 1. Log into ArcGIS Developers Site 2. Click the applications button in the upper right corner 3. Register a New Application 4. Copy the Client ID from your newly registered application and paste it into the `client_id` string resource in `res/values/strings.xml`. 5. Run the app Once you successfully authenticate and re-run the app you will be asked if want to Continue with saved credentials. If you say **Yes** the app will use the credential file it created to authenticate you in the app. If you say **No** you will be prompted to sign in again. Be aware that while this sample app creates and caches the credential file it does not encrypt it, it only shows you how to use the credentials file to authenticate a user.
... View more
10-30-2015
10:17 AM
|
0
|
0
|
530
|
POST
|
With respect to Geodatabases you should do this at the layer level. If a Layer in a Geodatabase has a min/max set the `MapView` will honor it. You can set the min/max scales on the layers. Use the setMinScale() & setMaxScale() on the layer from the Geodatabase. This will allow you to override the min/maxScale property of a layer if it is set.
... View more
10-19-2015
02:23 PM
|
1
|
0
|
870
|
POST
|
The GeoTrigger SDK has a dependency on Google Play Services (6.5.87) so you need to import the same level as the GeoTrigger SDK or remove the dependencies in your project entirely.
... View more
10-16-2015
11:08 AM
|
0
|
0
|
289
|
POST
|
The problem is with your url, you don't clone a branch you clone the repository so the url for a direct clone (no fork) is https://github.com/Esri/arcgis-runtime-samples-android.git. Then you switch to the branch you want to work from. I do suggest for fork the repository first and then clone your fork as described in the README and here.
... View more
10-15-2015
03:02 PM
|
2
|
0
|
413
|
POST
|
What types of 'esri layer' are you trying to add? Google Maps Android API does not support direct Esri data formats, e.g. shapefile, but you can added Google data types to ArcGIS Runtime SDK for Android, below is a sample of added a KML layer: // Retrieve the map and initial extent from XML layout mMapView = (MapView)findViewById(R.id.map); // Create a new KML Layer SpatialReference sr = SpatialReference.create(102100); KMLLayer kmlLayer = new KMLLayer(url, sr); // Add KML Layer to MapView; mMapView.addLayer(kmlLayer);
... View more
09-24-2015
01:10 PM
|
0
|
0
|
581
|
POST
|
Ok, look forward to your metrics. Concerning APK size, unfortunately there isn't much you can do about the size of the APK currently. We are looking into modularizing the SDK in future releases.
... View more
06-26-2015
10:29 AM
|
0
|
0
|
715
|
POST
|
Can you send some performance metrics? Is there a reason you are using Android Fragments in this performance test? Is there a reason you are not extending the HelloWorld sample with your buttons and dynamic service to optimize your testing? What are the service layers you are using? Looking at your current code, you could optimize your event listeners implementation by having one listener for two buttons or using the onClick attribute for each button in your layout xml (assuming you have a typo in the code).
... View more
06-26-2015
08:38 AM
|
0
|
2
|
715
|
Title | Kudos | Posted |
---|---|---|
1 | 08-28-2014 11:13 AM | |
1 | 04-29-2015 06:36 PM | |
1 | 09-15-2014 12:01 PM | |
1 | 06-02-2017 04:43 PM | |
1 | 01-21-2015 07:00 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|