Fix for OutofMemoryError: bitmap size exceeds VM budget

by haric zhu » Thu, 17 Jun 2010 13:48:08 GMT


Sponsored Links
 Because the memory of cell phone is very limited, so when you are operating
a bitmap it will take too much resource, it is no perfect way to avoid, the
only thing you can do is to optimize it, like more bigger sample size, maybe
options.inSampleSize = 10, or adjust the value of height and width, then
remember  to release memory in time. *

*
2010/6/16 pawan nimje <pawanni...@gmail.com>

>



Other Threads

1. persistent saveCacheFile in webview?

Hi,

I am trying to figure out how to save a page that I load into a
Webview for the first time and then to load the cached version for
subsequent requests.

Anyhow, the following code doesn't work. I guess I will have to listen
to when the page has been fully loaded; then run the following code. I
searched the internet and it seems you can use javascriptinterface to
save the page within a window.load handler. But what about a page that
I don't have any control of?

private static CacheResult cacheRet;
// would like to know when to call this static method
CacheManager.saveCacheFile("http://www.cnn.com", cacheRet);

Thanks!
--~--~---------~--~----~------------~-------~--~----~

2. notifydatasetchanged in a ListView and handle Event click

Hi,

I've a ListView that is updated via the "notifydatasetchanged" methods
in a AsyncTask.
The items of my ListView contains checkbox.

The problem is when I click on one item checkbox while the listView is
updated, the checkbox state gets back to default. This happens until
the listView is fully updated.

I would like to maintain the new checkbox state even while the
listView is updated.

Can anyone help me?

Thanks
Tom

--~--~---------~--~----~------------~-------~--~----~

3. Capture key pressed

4. left handed user

5. Input method for decimal numbers

6. EditText border/background

7. Add menu icon programatically