I have been developing one Map project. In all Activity classes i have one method called getDataFromServer() which parse some JSON Response from the server for the particular activity. And displays that data on the Map. While receiving and parse data , I want to display loading screen. How to make getDataFromServer() method in Doinbackground().
Please provide me the best way……..
Thanks..
Use AsyncTask: