Open pishguy opened 7 years ago
I'm trying to pause current download on onStop by this code:
onStop
@Override protected void onStop() { super.onStop(); Alachiq.getDefaultInstance().pauseDownload(Alachiq.getDefaultInstance().getCurrentDownloadingTaskId()); EventBus.getDefault().unregister(this); } public int getCurrentTask(){ int thisTask = 0; String query = "SELECT * FROM " + TABLES.TASKS + " WHERE " + TASKS.COLUMN_STATE + "==" + SqlString.Int(TaskStates.DOWNLOADING); ... }
but i get an error on this line of code
.core.chunkWorker.ConnectionWatchDog.run(ConnectionWatchDog.java:56)
I'm trying to pause current download on
onStop
by this code:but i get an error on this line of code
.core.chunkWorker.ConnectionWatchDog.run(ConnectionWatchDog.java:56)