Problem with BitmapFactory.decodeStream and SD Card

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Problem with BitmapFactory.decodeStream and SD Card

Postby pmduque » Fri Nov 19, 2010 3:44 pm

Hi,

I'm reading a Bitmap from the SD Card using BitmapFactory.decodeStream. The problem is that if the SD Card is unmounted the process is killed because has a open file in the SD Card.

How can I prevent this? Can I close the file and keep the Bitmap? How can I do that if I don't have a file reference from BitmapFactory.decodeStream?

Thanks,
Pedro Duque
pmduque
Freshman
Freshman
 
Posts: 5
Joined: Tue Nov 16, 2010 2:40 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests