From f952a0e60ef46f3faff8a6263ad472982eead5c7 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Sun, 17 Apr 2011 16:15:56 +0000 Subject: [PATCH] moves settings to proper Android imp of background thread svn:r24648 --- .../android/ProcessSettingsAsyncTask.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/org/torproject/android/ProcessSettingsAsyncTask.java diff --git a/src/org/torproject/android/ProcessSettingsAsyncTask.java b/src/org/torproject/android/ProcessSettingsAsyncTask.java new file mode 100644 index 00000000..c4e88a7e --- /dev/null +++ b/src/org/torproject/android/ProcessSettingsAsyncTask.java @@ -0,0 +1,32 @@ +package org.torproject.android; + +import org.torproject.android.service.ITorService; + +import android.os.AsyncTask; +import android.os.RemoteException; + +public class ProcessSettingsAsyncTask extends AsyncTask +{ + + + @Override + protected Long doInBackground(ITorService... torService) { + + try { + torService[0].processSettings(); + } catch (RemoteException e) { + e.printStackTrace(); + } + + return 100L; + } + + protected void onProgressUpdate(Integer... progress) { + + } + + protected void onPostExecute(Long result) { + + } + +}