The whole screen goes black when the Android camera is first called

The first time you call a camera using this code,

    mCamera = getCameraInstance();  // Create an instance of Camera
    // Create our Preview view and set it as the content of our activity.
    mPreview = new CameraPreview(this, mCamera);// Create our Preview view and set it as the content of our activity.
    FrameLayout preview = (FrameLayout) findViewById(R.id.quest_image);
    preview.addView(mPreview);

      

the entire screen goes dark for a moment and then a preview is displayed on the preview screen. All other calls only have a black preview screen and then show a preview. How do I only have the preview screen flashing black even on the first call? Thanks to

+3
android camera


source to share


No one has answered this question yet

See similar questions:

31
SurfaceView blinks black on boot
3
Camera preview is still black

or similar:

1002
Grid motion detection
320
Android webview launches browser when loadurl is called
119
Android - sideways camera preview
ten
Method called after Exception Camera preview release
3
UIImagePickerController camera shows black screen
1
Android camera with black screen
1
Surface image blinks black when loaded in Android software
0
Black screen call function
0
Android Camera Unlock Media Recorder
-1
SurfaceView (camera preview) turns black after power on / off



All Articles
Loading...
X
Show
Funny
Dev
Pics