my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Loading resources in Android app" Watch "Loading resources in Android app" New topic
Author

Loading resources in Android app

Stephen Bell
Ranch Hand

Joined: May 11, 2013
Posts: 38
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.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading resources in Android app
 
Similar Threads
main() is declared as static
A typical Question
Exception
Returning Unique Objects from Methods
Preference of Operating System