Restores the resources when coming back to the foreground on Android.

If the app goes to the background during the loading of a level, its resources
become invalid (the images and the shaders). Thus we reload them.

The rendering thread is paused when the application goes to the background,
until the textures are restored.