new file for background binary check
This commit is contained in:
parent
c68d8c3a45
commit
98029168fb
|
@ -0,0 +1,32 @@
|
|||
package org.torproject.android.service;
|
||||
|
||||
import org.torproject.android.service.TorService;
|
||||
|
||||
import android.os.AsyncTask;
|
||||
import android.os.RemoteException;
|
||||
|
||||
public class CheckBinariesAsyncTask extends AsyncTask<TorService, Integer, Long>
|
||||
{
|
||||
|
||||
|
||||
@Override
|
||||
protected Long doInBackground(TorService... torService) {
|
||||
|
||||
try {
|
||||
torService[0].checkTorBinaries(false);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return 100L;
|
||||
}
|
||||
|
||||
protected void onProgressUpdate(Integer... progress) {
|
||||
|
||||
}
|
||||
|
||||
protected void onPostExecute(Long result) {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue