Try to use the latest SDL source code (https://hg.libsdl.org/SDL), there are lot of thread synchronization issues fixed for Android.
Create window and renderer as soon as the app starts.
Check that you get a valid window and renderer.
Start also to poll events quickly and don’t use the gl context or SDL renderer beetween the events SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERFOREGROUND.