Android的pre加载页面,以便到时候应用程序加载该页面是可见 [英] Android pre-loading page so that till the time app loads that page is visible

查看:137
本文介绍了Android的pre加载页面,以便到时候应用程序加载该页面是可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以把我在正确的道路,使我能够建立一个pre加载网页,其中是直到在后台加载应用程序可见。

Can anyone put me on the right path so that i'm able to develop a Pre-loading page which is visible till the application loads in background.

推荐答案

我建议你使用一个后台线程加载应用程序的的AsyncTask 的实施。

I'd suggest you use an AsyncTask implementation for loading your application in a background thread.

在的


  1. 上preExecute 方法,你显示
    图像(闪屏/加载
    微调/进度对话框...),

  2. doInBackground 方法,你加载
    为您的应用程序所需的数据
    开始,并在

  3. onPostExecute 删除方法
    在preloader图像,显示
    你的应用程序已经有
    所有必需的数据。

  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.

这篇关于Android的pre加载页面,以便到时候应用程序加载该页面是可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆