Skip to content Skip to sidebar Skip to footer

Auto Refresh Textview

I want to create one app. which get score from Server in json and display it on my app. but auto refresh is not working. when it get auto refresh it's showing two values old one an

Solution 1:

check my comment ur running in conning loop

private Runnable updateTask = new Runnable () 
{
  public void run() 
 {
    Log.d(getString(R.string.app_name) + " ChatList.updateTask()",
            "updateTask run!");

                // run any code here...
    //getdata();
    new BackHelper().execute();
    Log.e("hell", "hello");
    // queue the task to run again in 15 seconds...
 // here i think your in continues loop. check
    mHandler.postDelayed(updateTask, 15000);
}
 };

Post a Comment for "Auto Refresh Textview"