Skip to content

Commit

Permalink
move data uploader to own timer and thread (works!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marije Baalman committed Feb 16, 2012
1 parent 854d000 commit 0821e72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/com/steim/nescivi/android/gvb/VelocityEstimator.java
Expand Up @@ -87,6 +87,8 @@ public class VelocityEstimator extends Service {




private Timer timer = new Timer(); private Timer timer = new Timer();

private Timer timer2 = new Timer();


//private Thread myThread; //private Thread myThread;
//private boolean mRunning; //private boolean mRunning;
Expand Down Expand Up @@ -407,7 +409,7 @@ public void run(){
*/ */


//timer.scheduleAtFixedRate( mLogTimerTask, 0, mLogUpdateTime ); //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(); Toast.makeText(mContext, "VelocityEstimator sender and logger starting", Toast.LENGTH_SHORT).show();
} }
Expand Down

0 comments on commit 0821e72

Please sign in to comment.