user2065529
user2065529

Reputation: 247

black screen in surfaceView after activity with dialog theme opened

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 . 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

Answers (1)

user2065529
user2065529

Reputation: 247

I solved this with adding camPreview.setvisibility(vIEW.GONE) in onPause and camPreview.setvisibility(vIEW.Visible)in onResume().

Upvotes: 1

Related Questions