Handling Out Of Memory Exception to upload image from camera

Updated 22 April 2017

Save

There are some cases occur out of memory Exception when uploading an image from the camera, this happened because of no memory available to upload the image. So how we handle the Exception?

By using the BitmapFactory.Options class.

the following code to apply in our code when getting the result is Activity.RESULT_OK from the camera.

 

 

 

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home