After checking on numerous threads discussing bugs with the previous openGL implementation on Android, I have yet to see the problem which I am experiencing. Getting Android to restore cleanly to the previous state was difficult in itself and necessitated removing all storyboard scenes, manually resetting contentWidth and contentHeight, then rebuilding the current scene after a delay. Following those steps, most Android phones do restore properly; however, there is still an intermittent problem on Android 4.0.4.
When the app resumes from suspend, three potential scenarios occur:
- Everything loads fine (80% of time)
- The transparent regions of images go completely black (5%)
- Images are missing completely (15%)
This happens with buttons, image sheets, straight PNGs, and sprites. --EDIT-- It happens every time a certain sequence of steps is followed so please see the follow-up post --END EDIT–
Using Corona build 2012.904
No problem on Droid running Android 2.2.3
No problem on Droid Incredible running Android 2.3.4
Major problem on Samsung Galaxy S3 running Android 4.0.4
Dynamic scaling with all original image sizes smaller than 1024px
Has anyone else experienced this type of bug? With the simplest of images (28x28px and 176x176px) in a test app, I’ve only been able to replicate case (3) where the image is missing on resume. The logcat output indicates 72% free memory as the app resumes. The only other thing that appears about that time is:
\<893\>: Android Image
\<1088\>: RGB\_565
If any of that helps someone else replicate or address this issue, it would be much appreciated. [import]uid: 168249 topic_id: 30928 reply_id: 330928[/import] 1088>893>