How to automatically detect your Android front camera

Can someone tell me how to check if the Android phone also has a front camera? I tried using some help https://docs.google.com/View?id=dhtsnvs6_57d2hpqtgr , but camera camera = FrontFacingCamera.getFrontFacingCamera (); sometimes it sometimes works. Any help please?

+1
source share
1 answer

Can someone tell me how to check if the Android phone also has a front camera?

There is no API for this, at least not through Android 2.2. Excuse me!

I tried using some help https://docs.google.com/View?id=dhtsnvs6_57d2hpqtgr , but camera camera = FrontFacingCamera.getFrontFacingCamera (); sometimes it sometimes works.

This is for two specific phone models, and not for Android devices in general. With luck, the upcoming release of Gingerbread will add built-in support for front-facing cameras.

In the meantime, you need to get instructions (for example, the one you contacted) from each device manufacturer and try to follow them.

0
source

All Articles