I was wondering if there was a specific intent that would be fired by
ActivityManager should it detect an ANR.  I am asking this because I
need to run some code in my application only when an application is
found it be unresponsive.  I need this to be detected across all
applications not just my own so in this case subclassing the uncaught
exception handler is not a viable solution.  Are there other ways to
detect when an ANR has occured other than polling with a service and
checking the ActivityManager's getProcessesInErrorState function?  My
alternative was having a broadcast receiver to listen on when the
traces.txt file has been modified which occurs only when the
ActivityManager detects an ANR and logs the report.  However, I/O
operations are expensive and would probably be too slow to log
multiple ANRs that occur in quick succession.  Any help would be
greatly appreciated.  Thank you.

All the best,
Nader

-- 
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

Reply via email to