Front camera preview is very dark using camera2 api

  • Replies:4
  • OpenNot stickiedUnanswered
  • Forum posts: 3

Feb 13, 2017, 10:08:18 PM via Website

I am trying to open and take a preview image using camera2 API but it is soooo dark.
I have read about it on the net, but every solution I found didn't solve the problem.
How can I solve it??
(When doing the exact things and open back camera - everything looks great. Only the front is dark)


  • Forum posts: 13

Feb 14, 2017, 3:33:02 AM via Website

Did you try it in a dark environment? Perhaps the illumination is not good.
Also, did you clear your front camera?

  • Forum posts: 3

Feb 14, 2017, 11:17:59 AM via Website

Yes, I tried on different environments, and it is really very dark when the environment is darker, but it is too dark if I compare it to the build-in Samsung camera. (I checked it on house light and almost didn't see a thing).
The only time I see something is when I am under a fluorescent lighting.

  • Forum posts: 3

Feb 17, 2017, 10:04:43 AM via Website

Yes. Exactly.
The back camera is OK. Only the front one. And I don't know how to see a brighter preview...

  • Forum posts: 1

Apr 19, 2019, 12:27:38 AM via Website

In my case both cameras front and back are dark completely. Worth to mention that in emulator everything works well.

Any suggestion?

BTW. my phones are Asus Zenfone 3 and Zenfone 5

Recommended by NextPit