title: Crash with SurfaceView in Android NDK when pausing/resuming app fast
body: <p>When I pause/unpause my app really fast then I get the following problem:</p>
  
  <pre><code>E/BufferQueueProducer(  177): [SurfaceView] connect(P): already connected (cur=1 req=1)
  E/libEGL  (25863): eglCreateWindowSurface: native_window_api_connect (win=0xb4984508) failed (0xffffffea) (already connected to another API?)
  E/libEGL  (25863): eglCreateWindowSurface:416 error 3003 (EGL_BAD_ALLOC)
  </code></pre>
  
  <p>Im pretty sure that I am stopping/starting my render thread correctly and this issue really only occurs when I pause/resume the app really fast (like when you mash the open-apps button).</p>
  
  <p>Any ideas what might be the cause for eglCreateWindowSurface returning EGL_NO_SURFACE here? My guess would be it has to do with something still being connected to the SurfaceView.</p>