I have a try/catch block that throws an exception and I would like to see information about the exception in the Android device log.
I read the log of the mobile de
catch (Exception e) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream stream = new PrintStream( baos ); e.printStackTrace(stream); stream.flush(); Log.e("MYAPP", new String( baos.toByteArray() ); }
Or... ya know... what EboMike said.