new file for background binary check

This commit is contained in:
Nathan Freitas 2012-02-11 22:42:34 -05:00
parent c68d8c3a45
commit 98029168fb
1 changed files with 32 additions and 0 deletions

View File

@ -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) {
}
}