My manager asks if it’s possible for an app to learn how many times OTHER apps that are installed on the Android device have crashed.
From what I understand about sandboxing the apps, this shouldn’t be possible. Is maybe the Android OS writing somewhere into logs which apps crashed, when, for what reason (e.g. stack trace saved)? If yes, one could parse them (possibly even on a non-rooted phone, if permissions allow).
This should work for just any kinds of other apps, from AndroidMarket or not, and not only those we developed ourselves.
Thanks!
Some apps will allow their stack traces for unhandled exceptions to be written to LogCat, which you can read if you have the
READ_LOGSpermission. Ideally, few production applications do this, as one can argue that it’s a bit of a security issue. Those that have their own mechanism for reporting unhandled exceptions (e.g., ACRA) will not necessarily log their data to LogCat, and you have no way about finding out whether or not they “crashed”.