Handling Out Of Memory Exception to upload image from camera

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.

 

 

 

. . .

Leave a Comment

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


Be the first to comment.

css.php

It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.

Vincenzo Carrano

Vincenzo Carrano

Administrator, Segshop

Talk to Sales

Global

Live Chat
Start a Project


    Message Sent!

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

    Back to Home