Loading SLPK (SceneView / ArcGISScene)

Discussion created by rodahang on Oct 5, 2018



I am having trouble on loading some slpk files, my loading lines looks like this:



// filename is a parameter

File fLyrPkg = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
        "SLPK/"+ filename);
String sLyrPkg = fLyrPkg.getAbsolutePath();
ArcGISSceneLayer sceneLayerTest = new ArcGISSceneLayer(sLyrPkg);
sceneLayerTest.addDoneLoadingListener(new Runnable() {
public void run() {
if (sceneLayerTest.getLoadStatus() == LoadStatus.LOADED) {
Log.d(TAG, "[runnable] sceneLayer Layer loaded" + sLyrPkg);
} else {
Log.d(TAG, "[runnable] sceneLayer Layer not loaded" + sLyrPkg);


I loaded 12 slpk files, it turns out some slpk are not shown on the app.  Does it have limitations in android?

one of my slpk file is 5mb and 31mb, other slpk files are around <=2.5mb