Hi my app needs a realtime data from database and I'm posting it on my `TextView` and I can't update the `TextView` as the database updates. I tried using `Timer` but its still the same.

Here is my code,

```
public void startTimer() {
    //set a new Timer
    timer = new Timer();

    //initialize the TimerTask's job
    initializeTimerTask();

    timer.schedule(timerTask, 0, 5000);
}

private void stopTimerTask() {
    //stop the timer, if it's not already null
    if (timer != null) {
        timer.cancel();
        timer = null;
    }
}

public void initializeTimerTask() {
    timerTask = new TimerTask() {
        public void run() {
            runOnUiThread(new Runnable() {
                @Override
                public void run() {
                    final AcceptCars Cars = (AcceptCars) getIntent().getSerializableExtra("cars");
                    renterLat.setText(Cars.renterLat);
                    renterLng.setText(Cars.renterLng);
                    Log.d(TAG,renterLat.getText().toString());
                    Log.d(TAG,renterLng.getText().toString());
                }
            });
        }
    };
}

```

And here is where I get the `Cars.renterLat` and `Cars.renterLng`,

```
public class AcceptCars implements Serializable {

    @SerializedName("renterLat")
    public String renterLat;

    @SerializedName("renterLng")
    public String renterLng;

}

```