Wow! This is amazing.
You’ve got to watch this.
Max heap size for an Android application is 16MB.
When the heap size reaches above 16MB, you will get an java.lang.OutOfMemoryError exeption.
To detect low memory, Use Activity.onLowMemory()
Without modifying system property, there is no way to increase max heap size.
property_get("dalvik.vm.heapsize", heapsizeOptsBuf+4, "16m");
//LOGI("Heap size: %s", heapsizeOptsBuf);
opt.optionString = heapsizeOptsBuf;
public void recycle ()
Since: API Level 1
Free up the memory associated with this bitmap’s pixels, and mark the bitmap as “dead”, meaning it will throw an exception if getPixels() or setPixels() is called, and will draw nothing. This operation cannot be reversed, so it should only be called if you are sure there are no further uses for the bitmap. This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap.
It is a good finding. A nice lecture.
These days, it is too busy to post something on my blog.
But I like this project which I could not talk about.
After I changed my desktop monitor, display went unstable.
Finally, after rebooting, I met “Ubuntu is running in low-graphics mode”.
For my Radeon HD 4350, I installed latest ATI driver again, but nothing was improved.
ATI HowTo from ubuntu documentation couldn’t help me.
==>returned null display.
I found the Q&A thread “[SOLVED] Stuck in Low graphics mode.” & solved the issue. Thanks, warp99
I think the point is resintalling gdm(GNOME display manager).
sudo apt-get update
make sure the update runs to remove the previous repositories then:
sudo apt-get -d install --reinstall gdm
this will only download gdm to our archive, make sure the operation completes correctly before moving to the next step
sudo apt-get remove --purge gdm
when the package is being removed go ahead and stop xserver as the prompts says, then:
sudo apt-get install gdm
Now we have the new gdm installed with a new configuration, next we need to get rid of xgl and the associated files:
sudo apt-get remove --purge xserver-xgl compiz compiz-plugins compiz-core compiz-manager csm cgwd cgwd-themes
then install the following:
sudo apt-get install --reinstall compiz compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-gnome compiz-plugins libcompizconfig0
and finally enter:
sudo dpkg-reconfigure -phigh xserver-xorg
choose the driver 'ati' and when you get to monitor resolution choose the resolution you want to run and any resolution ABOVE that resolution should be removed. Once that is done issue the following:
Come ~ on ~, Microsoft!
My laptop has your Windows XP, and you’re saying like this?
Google lab provides Java script conformance test which is named “sputnik”.
I ran the test on chrome browser, 220.127.116.11 (38071) + windows xp sp3 + Lenovo T400.
This is what I’ve got.
I’ve got 1st h264 stream rendering on android using hw.
Not bad lantency.
I am happy now.
If I have that wireshark disector, I would be happier.