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 7573091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:05:39+00:00 2026-05-30T16:05:39+00:00

RESOLVED : issue was unrelated to Android camera or SDK, but rather my own

  • 0

RESOLVED : issue was unrelated to Android camera or SDK, but rather my own logic to determine whether the camera and surface are both ready.

I have a situation where I’ve got a SurfaceView that exists in an activity’s layout xml, to which I add a callback so that I can know when the surfaceHolder is ready to act as a Camera preview window for my application. This part works just fine. I get a preview window and can use all the normal camera related methods and callbacks to take and store images.

The problem is that after the user has taken the picture they are prompted with a button that will allow them to immediately take another picture without first opening a preview window for the picture they’ve just taken… this is where my problem lies! When I try to call camera.startPreview a second time, with the already created surfaceHolder instance, I get no preview.

How can I re-use the same surfaceHolder? Is there some way I can perhaps force the surfaceView to destroy and re-create the current holder?

  • 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-30T16:05:40+00:00Added an answer on May 30, 2026 at 4:05 pm

    Issue was ultimately not related to the capability of a surfaceHolder to be re-used as a camera preview on multiple photos in the same activity’s lifetime. It was all down to my own logic that was checking whether the camera and holder were both indeed “ready”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: Issue Resolved A colleague of mine was changing a cell during Workbook_BeforeSave() without
I resolved this issue myself. It turns out that the activation framework requires some
UPDATE: I have somewhat resolved the issue. Just in case if anyone runs in
I've come across an issue with ActiveResource that has been resolved and was trying
I previously had a post on this issue that was resolved. However since rebuilding
I can't resolve this issue, I found a similar question here but: setting the
I recently resolved an issue my VB6 application had when saving large binary objects
Edit: I still have not resolved this issue. If anyone has advice I would
Steps taken in attempt resolve issue: 1-confirmed Eclipse was ran as Admin. 2- moved
In trying to resolve the issue I was having for: managing website on windows

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.