Browse files

move data uploader to own timer and thread (works!)

  • Loading branch information...
1 parent 854d000 commit 0821e72a63bcaf09d792b1e10a085e63e7455987 Marije Baalman committed Feb 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/src/com/steim/nescivi/android/gvb/VelocityEstimator.java
View
4 app/src/com/steim/nescivi/android/gvb/VelocityEstimator.java
@@ -87,6 +87,8 @@
private Timer timer = new Timer();
+
+ private Timer timer2 = new Timer();
//private Thread myThread;
//private boolean mRunning;
@@ -407,7 +409,7 @@ public void run(){
*/
//timer.scheduleAtFixedRate( mLogTimerTask, 0, mLogUpdateTime );
- timer.scheduleAtFixedRate( mUploadTimerTask, 0, mUpdateServerTime );
+ timer2.scheduleAtFixedRate( mUploadTimerTask, 0, mUpdateServerTime );
Toast.makeText(mContext, "VelocityEstimator sender and logger starting", Toast.LENGTH_SHORT).show();
}

0 comments on commit 0821e72

Please sign in to comment.