public class ApkDownloader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
notificationId |
static int |
REQUEST_TYPE_GET_APK |
protected static java.lang.String |
TAG |
Constructor and Description |
---|
ApkDownloader(MapView mapView)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
downloadAPK(java.lang.String apkUrl,
java.lang.String packageName,
java.lang.String filename,
java.lang.String hash,
boolean bInstall)
Download specified file asynchronously
|
void |
onRequestConnectionError(Request request,
RequestManager.ConnectionError ce) |
void |
onRequestCustomError(Request request,
android.os.Bundle resultData) |
void |
onRequestDataError(Request request) |
void |
onRequestFinished(Request request,
android.os.Bundle resultData) |
protected static final java.lang.String TAG
public static final int notificationId
public static final int REQUEST_TYPE_GET_APK
public ApkDownloader(MapView mapView)
mapView
- public void dispose()
public void downloadAPK(java.lang.String apkUrl, java.lang.String packageName, java.lang.String filename, java.lang.String hash, boolean bInstall)
apkUrl
- the url for the apk to downloadpackageName
- the package namefilename
- the filenamehash
- the hash to verify against.bInstall
- install after a succesfull download.public void onRequestFinished(Request request, android.os.Bundle resultData)
public void onRequestConnectionError(Request request, RequestManager.ConnectionError ce)
public void onRequestDataError(Request request)
public void onRequestCustomError(Request request, android.os.Bundle resultData)