I\'ve read well enough on the subject to get well and thoroughly confused. I\'m doing a workout tracker app such as RunKeeper, which tracks how long and how far the user has
USe the following thread in AsyncTask... I hope this will work for you ....
Handler mHandler;
private final Runnable mRunnable = new Runnable() {
public void run() {
Call your AsyncTask Class;;;;
mHandler.postDelayed(mRunnable, 1000);
}
};
Use runOnUiThread().
Define a Runnable:
private Runnable mRunnable = new Runnable() {
@Override
public void run() {
mTextViewOne.setText("10 miles!");
mTextViewTwo.setText("40 minutes!");
}
};
Inside your continuous thread:
runOnUiThread(mRunnable);