2
I am developing an Android application that receives data from a webservice (Json php).
The structure of the project: To get the data I’m using asynctask, I have a progressibar in preExecute and proExecute visualizes the data. The class of 'asynctask' is called in onCreate ().
Problems: The passage of the data from the webservice to android takes a long time and progress also and if the user turns the screen, restarts the search, and this makes the application boring.
How do I solve this problem ? What is the technique used in applications like Whatssap or Messanger?