http://facebook.github.io/stetho/
Download
Stetho is a sophisticated debug bridge for Android applications. When enabled, developers have access to the Chrome Developer Tools feature natively part of the Chrome desktop browser. Developers can also choose to enable the optional dumpapp tool which of
facebook.github.io
1. Gradle
implementation 'com.facebook.stetho:stetho:1.5.1' // check recent version
implementation 'com.facebook.stetho:stetho:1.5.1' // check recent version
+
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.1' // if you need
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.1' // if you need
2. Start on Application - onCreate()
Stetho.initializeWithDefaults(this);
Stetho.initializeWithDefaults(this);
3. Network
/*For OkHttp 2.x*/
OkHttpClient client = new OkHttpClient();
client.networkInterceptors().add(new StethoInterceptor());
/*For OkHttp 3.x*/
new OkHttpClient.Builder().addNetworkInterceptor(new StethoInterceptor()).build();
'공부 > Basic' 카테고리의 다른 글
[Git] rebase, merge 취소 (0) | 2021.02.01 |
---|---|
코드 작성 시 표기법 (0) | 2021.01.22 |
안드로이드 디버그 서명 SHA-1, SHA-256 값 확인하기 (0) | 2020.10.12 |
시간(UTC, GMT) (0) | 2020.10.05 |
android:ellipsize (0) | 2020.01.14 |