Why have you used this check?
I think, Ideally the number of .stacktrace files should be 1. Because in the next run, the file will be transmitted and deleted. If that is so, the below condition would never happen.
**if(ebos.list().length > 20) {**
if(this.mDefaultExceptionHandler != null) {
this.mDefaultExceptionHandler.uncaughtException(t, e);
}
return;
}
Also, in what case would the number of the .stacktrace files be greater than 1?