I'm design an app that keep sending JSON data to a server after t seconds and updating web view whenever it get an response from that server (after sending success). I want this background job running forever until i quit the app. Should i use loop inside an async task ?
I read in android main page that Async Task should be use as a one-time only job.
Use Runnable and Handler Class to execute a function with post delayed
And update the UI in onPostExecute of Asynctask