public class FileSystemProductProvider extends BaseProductProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_REPO_INDEX |
static java.lang.String |
LOCAL_REPO_PATH |
static java.lang.String |
LOCAL_REPOZ_INDEX |
_cache, _context
Constructor and Description |
---|
FileSystemProductProvider(android.app.Activity context,
android.content.SharedPreferences prefs) |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
getAPK(ProductInformation product)
Runs on UI thread, must be quick (i.e.
|
protected ProductRepository |
load()
Load cached index
|
ProductRepository |
parseRepo(java.lang.String repoType,
java.io.File repoIndex)
Override to convert to use java.io.FileReader outside of IO Abstraction
|
ProductRepository |
rebuild(ProductProviderManager.ProgressDialogListener l)
Rebuild cached repo index
Currently we only do this on background thread
|
contains, dispose, get, install, installed, isRemote, toString, uninstall, uninstalled
public static final java.lang.String LOCAL_REPO_PATH
public static final java.lang.String LOCAL_REPO_INDEX
public static final java.lang.String LOCAL_REPOZ_INDEX
public FileSystemProductProvider(android.app.Activity context, android.content.SharedPreferences prefs)
protected ProductRepository load()
BaseProductProvider
load
in class BaseProductProvider
public ProductRepository parseRepo(java.lang.String repoType, java.io.File repoIndex)
parseRepo
in class BaseProductProvider
repoType
- The type of repo; such as filesystem in this caserepoIndex
- The file for the repo indexpublic ProductRepository rebuild(ProductProviderManager.ProgressDialogListener l)
ProductProviderManager.Provider
protected java.io.File getAPK(ProductInformation product)
BaseProductProvider
getAPK
in class BaseProductProvider
product
- the product information