Skip to content
Advertisement

How to auto refresh data in android studio every second?

I am new to android studio, I am making an app that gets the json of a field in thingspeak, but I don’t know how can I make an auto refresh to the data I get every second. Can you please help me?

JavaScript

Advertisement

Answer

I found a solution finally, I placed the data request inside the following code and it worked perfectly:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement