From: https://github.com/facebook/stetho
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 offers a powerful command-line interface to application
internals.
Once you complete the set-up instructions below, just start your app and point
your laptop browser to chrome://inspect
. Click the "Inspect" button to
begin.
stetho-x.aar
stetho-x-okhttp3.aar
//(Application, maxExecuteResults)
Stetho.initializeWithDefaults(this, 1000)
OkHttpClient.Builder()
.addNetworkInterceptor(StethoInterceptor())
.build()