From 9f2ff8e9c5320392dd24c88cd15acea316c67d15 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 24 Feb 2015 15:34:04 -0800 Subject: Update README.md --- AndroidAsyncStetho/README.md | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'AndroidAsyncStetho') 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()); +``` -- cgit v1.2.3