aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2013-03-19 15:42:40 -0700
committerKoushik Dutta <koushd@gmail.com>2013-03-19 15:42:40 -0700
commit3638a69e3640bd2dbd7e004ba51840ddd01bca57 (patch)
treea2eb956c54025741888b2043faad649fca27394c
parent4ef51ee191d0738c5f9857d769c14055416fa86b (diff)
downloadAndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.tar.gz
AndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.tar.bz2
AndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.zip
getDefaultInstance
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1253194..bf7dbdb 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ NIO is extremely efficient.
```java
// url is the URL to download. The callback will be invoked on the UI thread
// once the download is complete.
-AsyncHttpClient.getDefault().get(url, new AsyncHttpClient.StringCallback() {
+AsyncHttpClient.getDefaultInstance().get(url, new AsyncHttpClient.StringCallback() {
@Override
// Callback is invoked with any exceptions/errors, and the result, if available.
public void onCompleted(Exception e, String result) {
@@ -30,7 +30,7 @@ AsyncHttpClient.getDefault().get(url, new AsyncHttpClient.StringCallback() {
### Download a url to a file
```java
-AsyncHttpClient.getDefault().get(url, filename, new AsyncHttpClient.FileCallback() {
+AsyncHttpClient.getDefaultInstance().get(url, filename, new AsyncHttpClient.FileCallback() {
@Override
public void onCompleted(Exception e, File result) {
if (e != null) {