6.3.2.13.5. TileDownloadService

public class TileDownloadService extends Service

The service to batch download tiles

6.3.2.13.5.1. Fields

6.3.2.13.5.1.1. ACTION_ADD_TASK

public static final String ACTION_ADD_TASK

6.3.2.13.5.1.2. ACTION_STOP

public static final String ACTION_STOP

6.3.2.13.5.1.3. KEY_MAXX

public static final String KEY_MAXX

6.3.2.13.5.1.4. KEY_MAXY

public static final String KEY_MAXY

6.3.2.13.5.1.5. KEY_MINX

public static final String KEY_MINX

6.3.2.13.5.1.6. KEY_MINY

public static final String KEY_MINY

6.3.2.13.5.1.7. KEY_PATH

public static final String KEY_PATH

6.3.2.13.5.1.8. KEY_ZOOM_FROM

public static final String KEY_ZOOM_FROM

6.3.2.13.5.1.9. KEY_ZOOM_LIST

public static final String KEY_ZOOM_LIST

6.3.2.13.5.1.10. KEY_ZOOM_TO

public static final String KEY_ZOOM_TO

6.3.2.13.5.1.11. TILE_DOWNLOAD_NOTIFICATION_ID

protected static final int TILE_DOWNLOAD_NOTIFICATION_ID

6.3.2.13.5.1.12. mBuilder

protected NotificationCompat.Builder mBuilder

6.3.2.13.5.1.13. mDownloadThread

protected Thread mDownloadThread

6.3.2.13.5.1.14. mIsDownloadError

protected volatile boolean mIsDownloadError

6.3.2.13.5.1.15. mIsDownloadInterrupted

protected volatile boolean mIsDownloadInterrupted

6.3.2.13.5.1.16. mNotifyManager

protected NotificationManager mNotifyManager

6.3.2.13.5.1.17. mQueue

protected Queue<DownloadTask> mQueue

6.3.2.13.5.2. Methods

6.3.2.13.5.2.1. addDownloadTask

protected void addDownloadTask(Intent intent)

6.3.2.13.5.2.2. addTask

protected void addTask(String layerPathName, GeoEnvelope env, int zoomFrom, int zoomTo)

6.3.2.13.5.2.3. addTask

protected void addTask(String layerPathName, GeoEnvelope env, List<Integer> zoomList)

6.3.2.13.5.2.4. cancelDownload

protected void cancelDownload()

6.3.2.13.5.2.5. clearResources

protected void clearResources()

6.3.2.13.5.2.6. download

protected void download(DownloadTask task)

6.3.2.13.5.2.7. downloadTile

protected boolean downloadTile(RemoteTMSLayer tmsLayer, TileItem tile)

6.3.2.13.5.2.8. getStopIntent

protected Intent getStopIntent()

6.3.2.13.5.2.9. getTileItems

protected List<TileItem> getTileItems(GeoEnvelope bounds, double zoom, RemoteTMSLayer tmsLayer)

6.3.2.13.5.2.10. isDownloadError

protected boolean isDownloadError()

6.3.2.13.5.2.11. onBind

public IBinder onBind(Intent intent)

6.3.2.13.5.2.12. onCreate

public void onCreate()

6.3.2.13.5.2.13. onDestroy

public void onDestroy()

6.3.2.13.5.2.14. onStartCommand

public int onStartCommand(Intent intent, int flags, int startId)

6.3.2.13.5.2.15. sendProgressorsValues

protected void sendProgressorsValues(int maxValue, int value, String layerPathName)