There are several ways to do this, activate LogCat and you will see detailed information about what is happening with your application.
or you make a mistake. Handling Exception Information Toast
try {
...
your code
...
} catch (IOException e) {
Toast.makeText(getApplicationContext(), "Exception Info " + e.getCause(),Toast.LENGTH_LONG).show();
e.printStackTrace();
}
updated
source
share