15 import android.content.Context;
16 import android.content.Intent;
17 import android.content.SharedPreferences;
89 if (
"AssetModelManager".equals(classname)) {
91 }
else if (
"SDModelManager".equals(classname)) {
93 }
else if (
"WebModelManager".equals(classname)) {
101 if (classname == null) {
105 throw new RuntimeException(
"ModelManagerService: Class " + classname +
" not known as AModelManager");
static final String PREF_MODELCACHING
The name for the preference storing information about whether models should be cached when loaded fro...
Class for model loading from the local SD card of the mobile device running android.
static final String PREFERENCES_FILENAME
The filename for the application preferences.
Class to load models from application assets.
static String APP_DATA_DIRECTORY
The directory where the application may write data to and read from.
static final String DEX_CLASSES_JARFILE
The file name within a model directory that contains any runtime-loadable classes.
This class serves as base class for accessing various types of models at different locations...
A model manager implementation that allows to load models from web locations.
This Exception gets thrown when an error occurs regarding the functionality of the ModelManager...
static final String EXTRA_MODELMANAGER_CLASSNAME
The string describing the class name which denotes the corret AModelManager subclass to be instantiat...
static final String EXTRA_MODELMANAGER_MODELDIR
The string extra in intents to tell which model directory is currently used.
Class that contains miscellaneous JaRMoS specific constants and static functions. ...
A wrapper class that takes any AModelManager as source and a FileModelManager as target.
static final String PREF_MODELCACHING_OVERWRITE
The name for the preference storing information about whether existing model data is overwritten when...
static AModelManager getModelManager(Context c, Intent i)
Returns a model manager instance for the current intent.