diff options
author | Koushik Dutta <koush@koushikdutta.com> | 2014-02-15 13:42:14 -0800 |
---|---|---|
committer | Koushik Dutta <koush@koushikdutta.com> | 2014-02-15 13:42:14 -0800 |
commit | 594635d0a62ef6497506450639a0bd9bbf95b913 (patch) | |
tree | 525c7d70b1dcce1111190c9dac58cf9e7c712773 /README.md | |
parent | 3ecd9b0fcc47c499682665e426595486cc413bcc (diff) | |
download | AndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.tar.gz AndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.tar.bz2 AndroidAsync-594635d0a62ef6497506450639a0bd9bbf95b913.zip |
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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
|