Android: Acessing front facing camera for Android 2.3

4.6k Views Asked by At

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!

2

There are 2 best solutions below

0
On BEST ANSWER

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

1
On

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