commit 98029168fbee991a371e2bfb10a85fe61aa0d77e Author: Nathan Freitas nathan@freitas.net Date: Sat Feb 11 22:42:34 2012 -0500
new file for background binary check --- .../android/service/CheckBinariesAsyncTask.java | 32 ++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/android/service/CheckBinariesAsyncTask.java b/src/org/torproject/android/service/CheckBinariesAsyncTask.java new file mode 100644 index 0000000..7ab0c50 --- /dev/null +++ b/src/org/torproject/android/service/CheckBinariesAsyncTask.java @@ -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) { + + } + +}
tor-commits@lists.torproject.org