Reputation: 247
My center activity has a surfaceView. When I open another activity and get back to this everything works fine. The problem appears when I open an activity which has a dialog-theme. When I return from this activity I see a black surfaceView. The strange thing is that in both cases I described before the same methods are being called. what am I doing wrong?
Upvotes: 0
Views: 765
Reputation: 247
I solved this with adding camPreview.setvisibility(vIEW.GONE) in onPause and camPreview.setvisibility(vIEW.Visible)in onResume().
Upvotes: 1