There really seems to be no information on how to acess the front facing camera on android phones (gingerbread).
Could someone please point me to a 开发者_高级运维page or post that explains how it's done?
Thanks!
Here is an example on how to access different cameras and switch between them: CameraPreview
The link is not accessible right now, Google has moved the Sample Project.
Please import a Sample Project and find it at:
ApiDemos/com.example.android.apis.graphics/CameraPreview.java
Mat be this might help you How to use Front Facing Camera on Samsung Galaxy S
As for 2.3 Camera you can try this method passing the camera ID
精彩评论