However, System.gc is so commonly abused that most implementations ignore it.
On Aug 10, 3:28 pm, TreKing <treking...@gmail.com> wrote: > 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.htm...() > > <http://download.oracle.com/javase/1.4.2/docs/api/java/lang/System.htm...()> > "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