开发者

loading problem in android

I have develop one app in which four box question are there. all question are set as swf animated file. there are three activity

First :> splash screen

Second :> main screen

Third :> last screen

Now in main screen stay question part.

Problem : > when i test on device display splash screen and after comming main screen but main screen take approx five minute to load and something black screen display at this time after five minute wait it will display properly. so i suffering this delay problem can you explain why this is raise. and how to solve or reduce time?

my a开发者_如何学编程ll code are stay in onCreate(); method


This is because you seeing your UI after completing onCreate method.So you are not seeing your UI.To overcome this you can use AsyncTask class for long running operation.Use doInBackground method for the processing of data and to update UI,you can use onProgressUpdate method

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜