AdityaHegde / TwitterClient

0 stars 0 forks source link

[Android Bootcamp] Project 4: Twitter Client Project - Stuck #1

Closed AdityaHegde closed 9 years ago

AdityaHegde commented 9 years ago

I am unable to proceed due to an issue. My http request are not going through. onStart, onFinish are being fired. But neither the onSuccess or onFailure are being fired. No error in the console.

@nidhi1608 @thecodepath

nidhi1608 commented 9 years ago

Have a look at Problem# 2 on [Helpful Hints](public void onSuccess%28JSONArray response%29) guide? Make sure to use the correct signature for OnSuccess and onFailure. public void onSuccess(JSONArray response) public void onFailure(Throwable throwable, JSONObject errorResponse)

Let me know if that works.

AdityaHegde commented 9 years ago

I fixed the api. I realized there is a limit on the no of calls we can make.

Have added a walkthrough.

I couldn't get the relative timestamp to show as 12m, 25s instead shows 12 minutes ago, 25 seconds ago. Couldn't find anything in the documentation.

nidhi1608 commented 9 years ago

Thats right, Twitter has a 15 minute window after which you should be able to access the api again.

Check out [DateUtils.getRelativeTimeSpanString](http://developer.android.com/reference/android/text/format/DateUtils.html#getRelativeTimeSpanString%28long, long, long, int%29) to play around with relative timestamp.

nidhi1608 commented 9 years ago

:+1: Congrats on completing the assignment! Nice work overall. I have provided a detailed Feedback Guide here which covers the most common issues with this submitted project. Read through the feedback guide point-by-point to determine how you could improve your submission.

Let us know if you have any other thoughts or questions about this assignment. Hopefully by now you feel pretty comfortable with all the major pieces to basic Android apps (Views, Controllers, Models, Authentication, API Communication, Preferences, ActionBar, et al) and see how they all fit together.