diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-03-19 15:42:40 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-03-19 15:42:40 -0700 |
commit | 3638a69e3640bd2dbd7e004ba51840ddd01bca57 (patch) | |
tree | a2eb956c54025741888b2043faad649fca27394c | |
parent | 4ef51ee191d0738c5f9857d769c14055416fa86b (diff) | |
download | AndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.tar.gz AndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.tar.bz2 AndroidAsync-3638a69e3640bd2dbd7e004ba51840ddd01bca57.zip |
getDefaultInstance
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) {
|