Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4123200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:34:52+00:00 2026-05-20T23:34:52+00:00

I have successfully captured the single photo using camera in Android. But when I

  • 0

I have successfully captured the single photo using camera in Android. But when I tried to capture 5 photos at once, app stops responding, camera preview turns to green and no picture is saved. What I saw in stack trace is as follows (partial)

03-17 14:19:54.804:
INFO/QualcommCameraHardware(19268):
deinitPreview E 03-17 14:19:54.804:
INFO/QualcommCameraHardware(19268):
deinitPreview X 03-17 14:19:54.804:
DEBUG/QualcommCameraHardware(19268):
frame_thread X 03-17 14:19:54.834:
DEBUG/QualcommCameraHardware(19268):
snapshot_thread E 03-17 14:19:54.854:
DEBUG/CameraService(19268):
takePicture (pid 20509) 03-17
14:19:54.884:
WARN/AudioFlinger(19268): write
blocked for 85 msecs 03-17
14:19:55.154:
DEBUG/CameraService(19268):
postShutter 03-17 14:19:55.284:
DEBUG/CameraService(19268): postRaw
03-17 14:19:55.314:
DEBUG/QualcommCameraHardware(19268):
snapshot_thread X 03-17 14:19:55.344:
DEBUG/QualcommCameraHardware(19268):
snapshot_thread E 03-17 14:19:55.364:
DEBUG/CameraService(19268):
takePicture (pid 20509) 03-17
14:19:55.984:
DEBUG/CameraService(19268):
postShutter 03-17 14:19:56.064:
DEBUG/CameraService(19268): postRaw
03-17 14:19:56.074:
ERROR/QualcommCameraHardware(19268):
native_jpeg_encode:
jpeg_encoder_encode failed. 03-17
14:19:56.074:
ERROR/QualcommCameraHardware(19268):
jpeg encoding failed 03-17
14:19:56.084:
DEBUG/QualcommCameraHardware(19268):
snapshot_thread X 03-17 14:19:56.154:
INFO/DEBUG(19267): * ** *
*
* * ** * ** * ** * 03-17 14:19:56.164: INFO/DEBUG(19267): Build fingerprint:
‘google_ion/google_ion/sapphire/sapphire:1.6/DRC83/14721:user/adp,test-keys’
03-17 14:19:56.164: INFO/DEBUG(19267):
pid: 19268, tid: 20813 >>>
/system/bin/mediaserver
…
…
…
14:19:59.894: INFO/ServiceManager(46):
service ‘media.camera’ died 03-17
14:19:59.894: WARN/Camera(20509):
Camera server died! 03-17
14:19:59.894: WARN/Camera(20509):
ICamera died 03-17 14:19:59.894:
ERROR/Camera(20509): Error 100 03-17
14:19:59.915: WARN/AudioSystem(71):
AudioFlinger server died! 03-17
14:20:00.014: INFO/Process(71):
Sending signal. PID: 18636 SIG: 3
03-17 14:20:00.054:
INFO/dalvikvm(18636): threadid=7:
reacting to signal 3

I am calling the takePicture method in a loop to capture multiple photos;

for(int m = 0 ; m < 6; m++) {

    mPrimCamera.takePicture(null, mPictureCallbackMet, mPictureCallbackMet);
}

I am doing this on HTC Magic running Android 1.6. I think, I am using the wrong way to take multiple photos. What is the correct way to capture multiple photos using Android Camera API?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:34:52+00:00Added an answer on May 20, 2026 at 11:34 pm

    I didn’t find any API support for this. And repeatedly calling the takePicture method from the loop is not working. So, I get a workaround. The code is still in loop but I’m now using Thread;

    private class CaptureThread extends Thread {
    
            @Override
            public void run() {
    
                int count = 0;
    
                while(count < mNo) {
                    mFileName = mLocation + "/pic" + count + ".jpg";
    
                    mCamera.takePicture(null, mPictureCallback, mPictureCallback);
    
                    count++;
    
                    try {
                        Thread.sleep(3000);
                    } catch (InterruptedException exception) {
                        exception.printStackTrace();
                    }
                }
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a camera application and I have integrated it successfully but
I have successfully been using the eclipse Indigo internal browser to view my web
I have successfully installed Eclipse and the Android SDK on Fedora 16. However, when
i have successfully created distribution profiles and installed on my xcode organiser, but this
I'm using UISwipeGestureRecognizer successfully to capture and action when gestures on the screen are
I have successfully done this before but now after running the program numerous times
I have a suite of App Engine tests that are called using nose .
I have a small app using RestKit with a Sinatra-backed server. When I post
I have searched everywhere and tried mixing and matching different bits of code but
I have successfully integrated the Flurry jar into my Android application and I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.