Click here to Skip to main content
15,921,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know How Do I capture pic from frond camera in backend on login button click.And then display the image on the next screen.

What I have tried:

Please suggest some codes and logics.
Posted
Updated 1-Aug-17 23:14pm

1 solution

To find the front camera, you have to iterate over all cameras, find the ID of the one on the front, and use that:
Android Front Camera API - Stack Overflow[^]
 
Share this answer
 
Comments
Member 13233111 2-Aug-17 5:31am    
https://stackoverflow.com/questions/21752637/how-to-capture-an-image-in-background-without-using-the-camera-application

I found this helpful, but in the end the pic should get preview on the next screen... any suggestion?
Thomas Daniels 2-Aug-17 5:38am    
No, I don't know that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900