7 import java.io.IOException;
9 import android.content.Context;
10 import android.os.Environment;
11 import android.util.Log;
24 private static final String JARMOSA_SD_DIR =
"jarmosa_models";
29 public static final String
SD_BASE_DIR = Environment.getExternalStorageDirectory().toString();
54 }
catch (IOException e) {
55 Log.e(
"SDModelManager",
"I/O Exception during input stream creation for file " + Const.DEX_CLASSES_JARFILE
56 +
" in model " +
getModelDir() +
", loading from SD card", e);
75 return "Reading SD card models";
String getLoadingMessage()
A short message that writes "loading SD models" dependent on the actual instance. ...
static final String SD_BASE_DIR
SD Card base directory string.
Class for model loading from the local SD card of the mobile device running android.
Manages models loaded from the file system available via the java.io classes.
final InputStream getInStream(String filename)
Returns an InputStream instance streaming the contents of the file given by filename.
ClassLoader getClassLoader()
static final String DEX_CLASSES_JARFILE
The file name within a model directory that contains any runtime-loadable classes.
static final String SD_MODEL_DIR
rbAppMIT's root folder on the SD-Card
static boolean ensureSDDir()
SDModelManager(Context c)
Class that contains miscellaneous JaRMoS specific constants and static functions. ...
Utility class for providing class loaders that load from dex-jarfiles.