Well, on a regular phone there will be a number of applications and services running. Even things like receiving an email or sms or other random events will cause a GC at least once every 4 minutes. I don't think there's a way to circumvent this without getting rid of the allocations that happen in these programs.
I've heard that the newer 2.0 versions have improved garbage collection hogging the cpu dramatically. However I haven't done any tests yet. Do the GC runs happen in the emulator, or only on the phone? On Tue, Jun 22, 2010 at 3:22 PM, Peter Eastman <[email protected]> wrote: > I've also seen this sort of stuttering, which in my case is clearly > related to gc, since a message appears in the log saying that a gc was > just done whenever it happens. I've used DDMS to identify where > garbage is being produced, and have completely eliminated all > allocations in my own code. By I'm still seeing allocations in code > internal to Dalvik itself, and I haven't found any way to get rid of > them. > > Peter > > -- > 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 -- http://diastrofunk.com, http://developingthedream.blogspot.com/, http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9 -- 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

