I am trying to do an android app where I will use facial recognition for providing security to the other applications present in phone. I am retrieving all applications and showing them in a list. I kept a button(ON/OFF) beside every application mentioned in the list. When I select ON for an app I provide security for that app using facial recognition.
Now, when I am trying to open the corresponding app it should first go to front camera. Here is where I am facing problem. Since I am new to android I don't understand how to redirect to front camera when I open an application.
Please help me if anyone has an idea on how to do it.