I debugged this on Logcat and got the following messages, when it switched from GLSurfaceView to SurfaceView, but freezed:
handle 0x494900 still locked (state=40000001) WARN/WindowManager(53): No window to dispatch pointer action 1 WARN/InputManagerService(53): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $Proxy@43d3c260 Does anyone know how I can avoid this? On Aug 24, 9:54 pm, MobileVisuals <[email protected]> wrote: > My app switches between a SurfaceView and 10 GLSurfaceViews. It can > swith to the GLSurfaceViews without problem, but sometimes the > displayed GLSurfaceView freezes when I try to switch back to the > SurfaceView, > I assume this is a threading issue. > > I used suspend() and resume() to control the SurfaceView before, but > then I read this can result in deadlocks. So I changed it to > yield(),but the problem remained. I use onResume() and onPause to > control the GLSurfaceViews. I can't find any yield method that I can > use for the GLSurfaceView thread. Is there a better way to control the > GLSurfaceView? Can onResume() and onPause result in deadlocks? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

