]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
Fixed issue where service timer failed to time out.
authorisaac.jones <isaac.jones@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 16 Jan 2009 06:44:31 +0000 (06:44 +0000)
committerisaac.jones <isaac.jones@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 16 Jan 2009 06:44:31 +0000 (06:44 +0000)
git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@1739 72b678ce-9140-0410-bee8-679b907dd61a

AUTHORS
src/org/openintents/safe/service/ServiceDispatchImpl.java

diff --git a/AUTHORS b/AUTHORS
index bb4e30546f7ef9d4accf9a2ce3d5cd7bdeca4516..93749de90a52fa20f198f0bb8c40cf4f52fb36ab 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,4 +1,4 @@
 Steven Osborn - http://steven.bitsetters.com
 Randy McEoin
-Isaac Potoczny-Jones
+Isaac Potoczny-Jones - http://www.syntaxpolice.org
 Peli
index b657c6dfa9e6d8b52158588153e3ed6c61884285..6a0a96818a866185ffa948fc90f5a77bea5a08cd 100644 (file)
@@ -32,6 +32,7 @@ import android.util.Log;
 import android.os.CountDownTimer;
 
 public class ServiceDispatchImpl extends Service {
+       private static String TAG = "ServiceDispatchIMPL";
        private CryptoHelper ch;
        private String masterKey;
     private CountDownTimer t;
@@ -50,7 +51,7 @@ public class ServiceDispatchImpl extends Service {
     public void onCreate() {
       super.onCreate();
       
-         Log.d( "ServieDispatchImpl","onCreate" );
+         Log.d( TAG,"onCreate" );
     }
     
     @Override
@@ -63,19 +64,23 @@ public class ServiceDispatchImpl extends Service {
          Intent intent = new Intent(CryptoIntents.ACTION_CRYPTO_LOGGED_OUT);
          sendBroadcast(intent);
          
-         Log.d( "ADDERSERVICEIMPL","onDestroy" );
+         Log.d( TAG,"onDestroy" );
     }
     
     private void startTimer () {
        t = new CountDownTimer(timeoutUntilStop, timeoutUntilStop) {
                public void onTick(long millisUntilFinished) {
                        //doing nothing.
+                         Log.d(TAG, "tick: " + millisUntilFinished );
                }
 
                public void onFinish() {
+                       Log.d( "ServieDispatchImpl","timer onFinish" );
                        stopSelf(); // countdown is over, stop the service.
                }
        };
+       t.start();
+               Log.d(TAG, "Timer started with: " + timeoutUntilStop );
     }
     
     private void restartTimer () {