There are e.printStackTrace() method to print exceptional error, so I would like to take entire exception in String and show it by Toast.makeText
e.printStackTrace()
String
Toast.makeText
you can print the stack trace to a stream & read from it.
ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter pw = new PrintWriter(baos); e.printStackTrace(pw); String stachTrace = new String(baos.toByteArray());
or you can use a StringWriter in place of the ByteArrayOutputStream.