I wrote a code as shown below to print stack trace. I am using eclipse IDE. I am unable to view the stack trace. I checked in console and logcat.
catch (Exception ex)
{
//Exception handling
ex.printStackTrace();
Log.e("error in uploading", ex.getMessage());
}
I logcat exception stack traces with…