I did try to look at that file, but I am not able to understand its content. Any pointers or document on analyzing the anr trace files.
On Jan 7, 10:55 pm, Al <alcapw...@googlemail.com> wrote: > During ANR, a stack trace is written to /data/anr/, I've found that > file to very helpful to track down the cause. Search your package name > in the file to see what was going on at the time inside your app. > > On Jan 6, 8:36 pm, "Dianne Hackborn" <hack...@android.com> wrote: > > > Look at what your main thread is doing when the ANR happens. It may not be > > directly related to thestopSelf() at all -- you may have some code in a > > completely different location that is blocking the main thread, and the > >stopSelf() call just happens to cause the system to try to interact with > > your app, find it isn't responding, and result in an ANR. > > > On Tue, Jan 6, 2009 at 11:03 AM, jsm <mamm...@gmail.com> wrote: > > > > I have two doubts > > > - When I callstopself() in the service, it raises an ANR (Force close > > > or Wait) > > > I am calling this in a seperate thread as shown in my service: > > > ... > > > quitServer(){ > > > Thread thrm = new Thread(null, mTask, "MYService"); > > > thrm.start(); > > > > } > > > > Runnable mTask = new Runnable() { > > > public void run() { > > > disconnectServer(); > > > stopSelf(); > > > } > > > }; > > > ... > > > I am pretty sure there are no other activity going on while i am > > > trying to quit because I can see from the server it has successfully > > > quit. > > > Any help or suggestion would be appreciated. > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---