im a newbie to android programming and im not sure whats happening
I’ve been experimenting with jme3 on android, and for the most part it’s going pretty well! I just ran with this one issue when making some games. If I add a standart bitmaptext to the guiNode with all of it’s features (color, text, etc.) and run the program on an android device, it’s all good, but if I press the power off button while in the app (so the screen turns off), turn the phone back on and unlock the phone, the problems occur.
The bitmaptext, if on the screen before the power shut off, will disappear completely. Gone. If it wasen’t bitmap text, but instead a picture, it would do one of the things.
Disappear completely like the bitmap text if it was on the screen before the powershut
If it wasen’t on the screen before the power shutoff (if it wasen’t attached to guiNode) and then shows after the power-on, the image becomes looks corrupted, looking grey with a bit of a tilt.
I’m not really sure what’s causing this, but this problem doesn’t happen if you open the apps preview button (the one where you get to see a box of every app open on your phone) and then do the powershut off trick. This also affects the FPS and Statview, but the grey box is not affected.
I’ll update this thread with photos and info once I can get them on my pc
EDIT: I’m starting to think the whole main class is being restarted, because if I play with AudioNode, it plays the audio twice. Also, everything I said doesn’t always happen.
Note: 3D objects in the rootNode are not affected from what ive seen
Example of picture corruption below