aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoushik Dutta <koush@koushikdutta.com>2015-02-24 15:34:04 -0800
committerKoushik Dutta <koush@koushikdutta.com>2015-02-24 15:34:04 -0800
commit9f2ff8e9c5320392dd24c88cd15acea316c67d15 (patch)
treed8482351aa2792e995f3eae665587ac70327cdf3
parentfefce9f98217cb8683dd355abecbb57aece4d02d (diff)
downloadAndroidAsync-9f2ff8e9c5320392dd24c88cd15acea316c67d15.tar.gz
AndroidAsync-9f2ff8e9c5320392dd24c88cd15acea316c67d15.tar.bz2
AndroidAsync-9f2ff8e9c5320392dd24c88cd15acea316c67d15.zip
Update README.md
-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());
+```