Android pre-loading page so that till the time app loads that page is visible
Can anyone put me on the right path so that i'm able to develop a Pre-loading page which is visible ti开发者_如何学Goll the application loads in background.
I'd suggest you use an AsyncTask implementation for loading your application in a background thread.
In the AsyncTask's
onPreExecutemethod you display an image (splash screen / loading spinner / progress dialog...),doInBackgroundmethod you load the necessary data for your application to start, and in theonPostExecutemethod you remove the preloader image, and display your application which already has all the necessary data.
I think you should implement a thread which will show an image related to your application. After some time you call your first Activity.
加载中,请稍侯......
精彩评论