How do you preload images?

Monkey Targets Forums/Android/How do you preload images?

Aman(Posted 2012) [#1]
I am thinking all images on a loading screen before the program start. But as I started working on it. I noticed that if the program is suspended, all images will have to be loaded again. Do you have a good way to load images that you would like to share?


marksibly(Posted 2012) [#2]
Hi,

You shouldn't have to reload images - if you do, it's a bug in Monkey!

On thing I've noticed is that using 'f5' to run an android app doesn't work quite right.

If you run an app with 'f5' and then hit the 'home' button, the app restarts the next time you click on it's icon.

However, if you build with 'f7' and then click on the app icon, hitting 'home' does a proper suspend - as it should.

Not sure why this is yet - perhaps that's the problem you're having?

If not, can you post a bug report along with some sample code?


benmc(Posted 2012) [#3]
I build to my Android device all the time, and I've never had to reload images after a suspend/resume. I still use v49 however.