jQuery in Action, 3rd edition
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 Building Microservices this week in the Design 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: 41
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Loading resources in Android app
It's not a secret anymore!