A library that allows you to view the application logs with a special activity for that
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.YurkivTaras:logcat:1.0.0'
}
Library requires a minimum SDK version of 14.
Intent intent = new Intent(getContext(), LogcatActivity.class);
intent.putExtra(LogcatActivity.BUFFER_SIZE_EXTRA, 1000);//default is 2500
startActivity(intent);