aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorKoushik Dutta <koush@koushikdutta.com>2014-02-15 13:42:14 -0800
committerKoushik Dutta <koush@koushikdutta.com>2014-02-15 13:42:14 -0800
commit594635d0a62ef6497506450639a0bd9bbf95b913 (patch)
tree525c7d70b1dcce1111190c9dac58cf9e7c712773 /README.md
parent3ecd9b0fcc47c499682665e426595486cc413bcc (diff)
downloadAndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.tar.gz
AndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.tar.bz2
AndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 3 insertions, 6 deletions
diff --git a/README.md b/README.md
index 1eb5804..11449b9 100644
--- a/README.md
+++ b/README.md
@@ -31,8 +31,7 @@ Download [the latest JAR](http://repository.sonatype.org/service/local/artifact/
### Download a url to a String
```java
-// url is the URL to download. The callback will be invoked on the UI thread
-// once the download is complete.
+// url is the URL to download.
AsyncHttpClient.getDefaultInstance().getString(url, new AsyncHttpClient.StringCallback() {
// Callback is invoked with any exceptions/errors, and the result, if available.
@Override
@@ -50,8 +49,7 @@ AsyncHttpClient.getDefaultInstance().getString(url, new AsyncHttpClient.StringCa
### Download JSON from a url
```java
-// url is the URL to download. The callback will be invoked on the UI thread
-// once the download is complete.
+// url is the URL to download.
AsyncHttpClient.getDefaultInstance().getJSONObject(url, new AsyncHttpClient.JSONObjectCallback() {
// Callback is invoked with any exceptions/errors, and the result, if available.
@Override
@@ -68,8 +66,7 @@ AsyncHttpClient.getDefaultInstance().getJSONObject(url, new AsyncHttpClient.JSON
Or for JSONArrays...
```java
-// url is the URL to download. The callback will be invoked on the UI thread
-// once the download is complete.
+// url is the URL to download.
AsyncHttpClient.getDefaultInstance().getJSONArray(url, new AsyncHttpClient.JSONArrayCallback() {
// Callback is invoked with any exceptions/errors, and the result, if available.
@Override