Take the 2-minute tour ×

I'm developing an android app for the visually-impaired people, so it will be very convenient for them if I can take and save the picture automatically without pressing the save button after taking a picture. I'm looking for API from android developer website, but I didn't find any API which is helpful for me. Anyone who has any idea about how to achieve this goal?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

You could add the steps to save the image inside the PictureCallBack.onPictureTaken of your own Camera Activity.

Here's an example:

    public void onPictureTaken(byte[] imageData, Camera camera) {
        //Use imageData[] and save wherever you want
        File imagefile = new File(filepath); // set a file path
        FileOutputStream fos = new FileOutputStream(imagefile);
        try {
        } catch(Exception e) {
           //Something wrong happened
        } finally {

Remember to add in your AndroidManifest the permission:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
share|improve this answer
add comment

You'll need to implement your own Camera Activity using the camera object and handle the storing the images after each capture.

The default camera intent options are very limited.

share|improve this answer
add comment

Your Answer


