I need ONE function to check if front camera exist, and if so - show preview. I found a few links, but each of them talk about a specific device:
I think you can loop through the available cameras on the phone and check the facing camera info to find one (but it is only available sing API level 9)
this answer could help you: How do I open the "front camera" on the Android platform?