- Priority filter
- Clear logcat
- Export as file
- Floating window
-
Clone this library as a project module, add module dependence.
-
Add following code to your
AndroidManifest.xml
<application> ... <provider android:name="com.github.logviewer.LogcatFileProvider" android:authorities="${applicationId}.logcat_fileprovider" android:grantUriPermissions="true" android:exported="false"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/logcat_filepaths" /> </provider> </application>
-
Add launch code in your code:
public void launchLogcatViewer() { LogcatActivity.launch(getContext()); }