I am working on android project in which I have to apply loading screen until the data loads from database. I know that how to start proegressBar but I need to know how can I stop the loading screen as data loaded from database.If u can please give me one simple example from which I can understand that how can I do this because I am new to android.
Share
Since you are getting data from a database you should do it asynchronously.
The best way to do it would be using an AsyncTask.
And to make it execute:
new GetDataTask().execute();