File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Loading resources in Android app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Loading resources in Android app" Watch "Loading resources in Android app" New topic

Loading resources in Android app

Stephen Bell
Ranch Hand

Joined: May 11, 2013
Posts: 39
Hi all

My app (which is a simple 2d game written using OpenGL ES 2.0) currently doesn't have a splash screen or menu, when you launch the app, it goes straight into the game.

Now, the thing is, that when I run this on a lower-end phone (a Samsung Galaxy Ace) it starts, but for the first 20 seconds or so, although everything is displayed and you can play it, it's clearly doing something in the background because the game 'stops and starts' - it's very jerky (sometimes everything will stop for a fraction of a second, then run really fast as it 'catches up' - it's extremely annoying).

I'm not doing anything special to load my resources, and there is a pause of about 5 or 6 seconds before it actually runs (black screen -which is where everything is loading and all my sprites are being created etc I assume).

After a little while, everything is smooth as butter.

Would anyone have any idea what may be going on?! Everything must be loaded at that point and all objects created, otherwise the app wouldn't start and be playable....

Any idea's would be appreciated.

I agree. Here's the link:
subject: Loading resources in Android app