On Tue, Aug 10, 2010 at 3:22 PM, Kumar Bibek <coomar....@gmail.com> wrote:

> I think calling System.gc() doesn't immediately trigger the
> garbage collection. So, relying on this all the time might not be a good
> idea.
>

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/System.html#gc()

<http://download.oracle.com/javase/1.4.2/docs/api/java/lang/System.html#gc()>
"When control returns from the method call, the Java Virtual Machine has
made a best effort to reclaim space from all discarded objects."

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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

Reply via email to