开发者

android: fastest way to display loading screen

i have a gles based game that takes quite some t开发者_运维技巧ime to load because of the huge amount of textures.

now i want to display a loading-text or loading-bar as soon as possible as the application is starting up.

what is the fastest way to display a text like this? should i do it in gles as well or should i use an alert or view?


I made a separate loading screen activity in my game that uses the standard Android UI. It has a text view saying "Loading" and a ProgressBar that gets incremented as it loads in images, sounds, etc. from disk into memory (I put all filenames into a stack and then pop them off one at a time and increment the ProgressBar after I pop something off the stack). When the loading is done, it takes the user to a main menu activity, and from there they can start my game.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜