laptop and a wrench

Bug

KML Layers in ArcGIS Runtime SDK for Android 10.2.9 does not throw FileNotFoundException.

Last Published: November 27, 2017 ArcGIS Runtime SDK
Bug ID Number BUG-000108624
SubmittedOctober 9, 2017
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found10.2.9
Operating SystemAndroid
Operating System Version7.0x
StatusNon-Reproducible

Additional Information

This is resolved in 100.x versions of ArcGIS Runtime.

Workaround

Use the Android core File class to check if the kmlLayer exists or not and then proceed with creating the object of the KmlLayer.File file = new File(filePath);if (file.exists()) {KmlLayer kmlLayer = new KmlLayer(file.getPath());kmlLayer.getRootNodes();Toast.makeText(MainActivity.this, "Layer found", Toast.LENGTH_LONG).show();} else {Toast.makeText(MainActivity.this, "Layer not found", Toast.LENGTH_LONG).show();}

Steps to Reproduce

Bug ID: BUG-000108624

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options