ANRs are because you are spending too much time on the main application thread. If you are doing network I/O, a lot of flash writes, or things like that, move that work to a background thread.
On Tue, Oct 12, 2010 at 5:41 AM, draf...@gmail.com <draf...@gmail.com> wrote: > > > I have an Activity that uses a ListView to simply display a list of > options for a user to select and when they select an option they are > taken to a new Activity. > > However on occasion the Activity with the options freezes when I try > to select one of the options, I get the ANR and in the log cat the > following error is displayed: > > java.lang.RuntimeException: Performing pause of activity that is not > resumed:<Activity> > > Does anyone know what this error means and how to diagnose it? > > A search brings up very little. > > Does anyone know what may be causing the error? > > I can post the code on request > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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