Home > Android, Programming > Android front camera app

Android front camera app

So my friend has a Samsung Galaxy SII, unfortunately the back camera isn’t working anymore, the front one is working and he was able to test it using a built in testing utility that only shows a preview with no photo taking functionality.

The problem with most (all maybe?) camera apps is that they first check the back camera and then crash since the camera isn’t working!. Using an old camera project of mine I removed most of the features (flash, focus, geo tagging, saving images to database with encryption) and changed the app to use the front camera using Camera.Open(1), so now he can use the front camera :).

The reason I’m posting this is that the app might help if someone has a similar problem.

I found some apps that only use the front camera but some of them were laggy and I already had my own app half ready :D.

Here’s the apk with the source code, Android API10+ (Android 2.3.3+):

FrontCam.apk (286 KB)

FrontCam Source.apk (515 KB) , eclipse project

Opinions are welcome :).

Categories: Android, Programming
  1. appreciated
    21/12/2012 at 2:43 am

    great 🙂 thanks

    • Fuchs
      21/12/2012 at 3:07 am

      You’re welcome 😀

  2. dhana
    18/06/2014 at 10:40 am

    useful code

  1. No trackbacks yet.

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: