Skip to content

Commit 29d6cb5

Browse files
author
pocha
committed
updated instructions in challenges to only use Default/Android Http client
1 parent e06b756 commit 29d6cb5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

twitter-http-challenge/_fetching_tweets_with_http_get.html.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
##Fetching tweets using HTTP GET calls and submitting new tweets
22

3+
> Update: If you were using HttpUrlConnection, our tests will eventually fail because of it. You need to use only DefaultHttpClient or AndroidHttpClient for HTTP calls
4+
35
This level focuses on fetching tweets using the Codelearn Twitter API and displaying them in list in *TweetListActivity* and updating list to add new tweets when refreshed.
46

57
###API
@@ -101,5 +103,5 @@ Edgar
101103
3. Add a refresh menu item which upon click should make an HTTP GET call to get new array of tweets and append the new data to list. The refresh should simply call the */tweets* url & append the tweets to the list.
102104

103105
###Restrictions
104-
* You must use one of the natively available techniques to perform HTTP operations, like **HttpClient** or **HTTPUrlConnection**. External libraries are not supported.
106+
* You must only use **AndroidHttpClient** or **DefaultHttpClient** to do network calls as they can only be mocked & tested with Robolectric. Any other library is not supported.
105107
* For JSON parsing, you can use **GSON** & **Jackson** libraries only

twitter-http-challenge/_login_with_http_post.html.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## The app so far
22

3+
> Update: If you were using HttpUrlConnection, our tests will eventually fail because of it. You need to use only DefaultHttpClient or AndroidHttpClient for HTTP calls
4+
35
If you have completed the setup, you should have a dummy Twitter app, **CodelearnTwitterChallenge**, imported in your Eclipse. The app has three screens as shown below
46

57
<div class="row-fluid">
@@ -59,7 +61,7 @@ The API will provide you a token as a JSON response
5961
* Modify the app to skip showing the login screen when the token is already available in SharedPreference.
6062

6163
###Restrictions
62-
* You must use one of the natively available techniques to perform HTTP operations, like **HttpClient** or **HTTPUrlConnection**. External libraries are not supported.
64+
* You must use either **AndroidHttpClient** or **DefaultHttpClient** library to do network call. Any other libraries are not supported.
6365
* For JSON parsing, you can use **GSON** & **Jackson** libraries only
6466
* The received token must be stored in a SharedPreference file named "codelearn_twitter"
6567

0 commit comments

Comments
 (0)