As I discussed in another post (Restore stack trace from string) I restore an exception from a database. I want to report this exception to the Android developer console - but how can I do this?
When the following code is executed, the user is requested to send the exception to the console (the dialog I want to see):
String test = null;
int lenght = test.length;
If I add "throw new Exception();", I always have to add "throws Exception" to the method signature, so it will never end up to report it to the developer console.
Does anyone have an idea?