aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AndroidAsyncStetho/README.md38
1 files changed, 31 insertions, 7 deletions
diff --git a/AndroidAsyncStetho/README.md b/AndroidAsyncStetho/README.md
index fb45234..d52d795 100644
--- a/AndroidAsyncStetho/README.md
+++ b/AndroidAsyncStetho/README.md
@@ -1,7 +1,31 @@
- Stetho.initialize(
- Stetho.newInitializerBuilder(this)
- .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
- .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
- .build());
- Ion.getDefault(this).getHttpClient().getMiddleware()
- .add(new StethoMiddleware()); \ No newline at end of file
+# AndroidAsync and Ion Stetho support
+
+[Stetho](https://github.com/facebook/stetho) is a tool that lets you log and view your network requests and more on Android.
+
+### Using Stetho with Ion
+
+```java
+// typical initialization of Stetho
+Stetho.initialize(
+Stetho.newInitializerBuilder(this)
+.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
+.enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
+.build());
+
+Ion.getDefault(this).getHttpClient().getMiddleware()
+.add(new StethoMiddleware());
+```
+
+### Using Stetho with AndroidAsync
+
+```java
+// typical initialization of Stetho
+Stetho.initialize(
+Stetho.newInitializerBuilder(this)
+.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
+.enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
+.build());
+
+AsyncHttpClient.getDefaultInstance().getMiddleware()
+.add(new StethoMiddleware());
+```