I'm seeing the same out of memory problem.
It's consistent on my G1 in a few tries.

Basically I used the built-in intent to get the photo on my sdcard,
and set it as the app's background:
Drawable d = Drawable.createFromPath(filename);
mainBg.setBackgroundDrawable(d);

The filename is what passed back from the photo picker in onActivityResult().

Doing this a few times will cause out of memory exception,
reproducible 100% of the time.
If the VM is to *eventually* free up the bitmap object memory, I
suspect it's not doing its job well.

I will give the recyle() a try now, and see if there's any improvement.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to