K
K
Kulikov Alexander2012-09-11 21:01:30
Android
Kulikov Alexander, 2012-09-11 21:01:30

Camera work when changing activity?

Good afternoon.
I made several tabs in the application, as described in this tutorial.
I hung a camera on one of the activities, everything is exactly according to this lesson.
The problem is that the camera only works the first time you switch to the tab with it. When you change the activity, the camera no longer works (there is blackness in place of the camera, only the button remains). I checked the handlers several times - everything seems to be correctly processed, both resume and pause activations with a camera. But it still only works the first time.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vacxe, 2012-09-11
@WatsOne

Try moving all camera initialization to onResume

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question