Method for judging whether there is front camera and rear camera in Android
•
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
二维码