Android remote stacktrace callback

59 views
Skip to first unread message

Yuval Greenfield

unread,
Jan 1, 2011, 1:07:34 PM1/1/11
to android-remo...@googlegroups.com
Hi madskristiansen1973,

I'm using ARS in a bit of a different way from how you are, I don't have hg installed so I can't send you a patch, but this is what the usage is like:

public class EmergencyButton extends Activity {
private class StackMailer implements ExceptionHandler.StackTraceHandler {
public void onStackTrace(String stackTrace) {
Log.e("emergency stack", stackTrace);
EmailSender.send("ad...@andluck.com", stackTrace);
}
}
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

ExceptionHandler.register(this, new StackMailer());


Attached is the new handler. Please tell me if this can interest your project, I would like to be able to use the regular ARS without modifications.

--Yuval




ExceptionHandler.java
Reply all
Reply to author
Forward
0 new messages