0

I want to know how to update the UI when a new value comes up. I'm using this code, and for this i have to launch the activity again to get the new results or values. Here is my code below:

 final Handler handler = new Handler(Records.this.getActivity().getMainLooper());
            handler.post(new Runnable() {
                @Override
                public void run() {
                    tempchart.invalidate();
                }
            });

Where tempchart is the View (chart) in which i'm going to show the realtime values

EKN
  • 1,886
  • 1
  • 16
  • 29

0 Answers0