OkNetworkMonitor
A network monitor for okHttp base on stetho.
You can view the request header, response header, response body and so on of a network request in your app.
Usage
Import the lib to your project.
implementation project(':lib-ok-network-monitor')
Add a network Interceptor for OkHttpClient
new OkHttpClient.Builder()
.addNetworkInterceptor(new OkNetworkMonitorInterceptor())
Add activities to your AndroidManifest.xml
<activity
android:name="com.linkaipeng.oknetworkmonitor.ui.NetworkFeedActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.linkaipeng.oknetworkmonitor.ui.NetworkFeedDetailActivity"
android:screenOrientation="portrait"/>
Start activity
NetworkFeedActivity.start(this);