Select to view content in your preferred language

Loading SLPK (SceneView / ArcGISScene)

466
0
10-05-2018 12:34 AM
RoseeleDahang
Emerging Contributor

Hi, 

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.loadAsync();
sceneLayerTest.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
if (sceneLayerTest.getLoadStatus() == LoadStatus.LOADED) {
Log.d(TAG, "[runnable] sceneLayer Layer loaded" + sLyrPkg);
scene.getOperationalLayers().add(sceneLayerTest);
} 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

0 Kudos
0 Replies