Method for judging whether there is front camera and rear camera in Android

Generally, we need to judge whether there is a rear camera when scanning QR code. For example, the nexus 7 generation does not have a rear camera. Therefore, we need to judge and give some hints or processing when trying to use it.

The following code is a series of methods to judge whether there is a front camera and a rear camera.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>