开发者

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

  1. onPreExecute method you display an image (splash screen / loading spinner / progress dialog...),
  2. doInBackground method you load the necessary data for your application to start, and in the
  3. onPostExecute method 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜