I have tried with below code for read and display shapefile from my SD card
|
I see this happen sometimes when my app hasn't been granted external storage permissions. Does you manifest file have the following entry?
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Good point Eric, it's easy to get caught by this. Also, if you're working on Android Marshmallow or up, then these permissions will not automatically be granted at install time - so add code to check, then ask for permission when you run the app, and allow the user to agree or disagree - you can see an example of this in this sample on GitHub: arcgis-runtime-samples-android/MainActivity.java at master · Esri/arcgis-runtime-samples-android · G... .