How to restore opengles textures /context


I am working on iphone and android with opengl(es) and SDL.
These operating systems support multitasking.
Means my app can go to background and can be restored.

When app comes back from being minimized my screen is black.
I suppose that I need to restore textures… and more.

Does anyone have a effective way to handle this?