I got a tricky interview question and hope somebody can help me out..
Scenario: You have a web services with Json or xml. On click of a button, how exactly you would get the data, parse the data and display it on the User Interface; beside this, how would you get the same task to update the data every fifteen minutes;
The last one and the most tricky one: how would you handle the case where both button and 15 minute refresh would happen at the same time.
(I think I should use AsyncTask to handle the last one but can't figure out how exactly should I do)
Thanks in advance!