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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:25:57+00:00 2026-05-27T23:25:57+00:00

So I am using the Android camera to take pictures within an Android app.

  • 0

So I am using the Android camera to take pictures within an Android app. About 90% of my users have no issues, but the other 10% get a picture that returns pure black or a weird jumbling of pixels.

Has anyone else seen this behavior? or have any ideas why it happens?

Examples:

Black:
enter image description here

Jumbled:
enter image description here

  • 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-27T23:25:58+00:00Added an answer on May 27, 2026 at 11:25 pm

    I’ve had similar problems like this.
    The problem in short is: Missing data.

    It occurs to a Bitmap/Stream if the datastream was interrupted for too long or it is accidentally no more available.

    Another example where it may occur: Downloading and uploading images.
    If the user disables all of a sudden Wifi/mobile network no more data can be transmitted.
    You end up in a splattered image.

    The image will appear/view okay(where okay means black/splattered, it’s still viewable!) but is invalid internally (missing or corrupted information).

    If it’s not too critical you can try to move all the data into a Bitmap object (BitmapFactory.decode*) and test if the returned Bitmap is null. If yes the data possibly is corrupted.

    This is just solving the consequences of the problem, as you can guess.
    The better way would be to take the problem on the foot:
    Ensure a good connection to your data source (Large enough, stout buffer).
    Try to avoid unneccesary casts (e.g. from char to int)
    Use the correct type of buffers (Either Reader/Writer for character streams or InputStream/OutputStream for byte streams).

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

Sidebar

Related Questions

I have an app in android using camera with opencv which runs for about
When I take pictures using android.hardware.camera and I save them to the following location
I'm trying to take a picture from the Camera using intent with onActivityResult but
I have an android application which allows the user to take a picture using
I have an android app in which I take a photo using the android
I'm using the phone's camera in an Android app to take a photo. I'm
My application allows users to take photos with their devices camera app, which are
I have been working on an app which includes using the devices camera. After
Alright I am making an Android app, and using the CAPTURE_PIC_REQUEST to take a
In My Android Camera Application, I am using this code to get Select Image

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.