if i press the power button the onPause() function should run but when i unlock the screen the sketch quit and if i try to resume it starts from the begining.
My question is that how can i read from res/drawable/ folder "whatever.png" file(s)?
So i would like to do some screen and resolution optimization (for 320x240 resolution a smaller pictures and for hdpi some bigger) but in the sketch i am able to read .png from data folder that i created, and its name changes to 'assets' when i export android project from processing.
Are there any solution for this or i am able to read pictures from the assets (/data) folder only?
i have a problem with this code, if i run it with P2D or P3D everything cool but when i test it with OPENGL the rectangle doesn't appear. could somebody please help?