jimmylongphan / SimpleTwitterClient

Android class week 3 project
0 stars 0 forks source link

[Android Bootcamp] Turn-in Week 4 SimpleTwitterClient #2

Open jimmylongphan opened 10 years ago

jimmylongphan commented 10 years ago

/cc @nesquena @timothy1ee

jimmyphan@yahoo-inc.com

nesquena commented 10 years ago

:+1: Project looks good. I have provided a detailed Project 4 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 might be able to improve your submission.

Let us know if you have any other thoughts or questions about this assignment. Hopefully you can see this coming together as a "fully fledged" twitter client with some more work and polish. This app contains all of the components now (fragments, models, networking, client, tab navigation, image loading, et al) of 90% of dynamic data-driven API client. Obviously there are lots of details and patterns to learn, but by this point you have been introduced to all the major frameworks and concepts. Hopefully you would feel fairly confident getting started making Android apps for instagram, pinterest, yardsale, flickr, using the same patterns.

jimmylongphan commented 10 years ago

I have a few questions.

Q) I was only able to launch the user profile activity directly from the arrayAdapter. Where would be a proper way to launch the profile activity?

Q) Sometimes my timeline and the target user's timeline get spliced together. How do I debug this? I think I'm only filling in the arrayAdapter from the get users API call.

Q) How do I hide menuItems in other activities? For example, my Profile Activity contains both the compose and profile action item. But my Compose Activity does not contain them.

nesquena commented 10 years ago

Q) I was only able to launch the user profile activity directly from the arrayAdapter. Where would be a proper way to launch the profile activity?

Pass a listener into the adapter and launch profile from fragment or even better activity using the listener pattern would be preferred.

Q) Sometimes my timeline and the target user's timeline get spliced together. How do I debug this? I think I'm only filling in the arrayAdapter from the get users API call.

Set breakpoints when onSuccess comes back, makes sure you are properly clearing the adapter and understand why they are getting spliced. Is the API call wrong? Are you adding two sets of data to the adapter? See debugging video for more details.

nesquena commented 10 years ago

Q) How do I hide menuItems in other activities? For example, my Profile Activity contains both the compose and profile action item. But my Compose Activity does not contain them.

It's very simple. In activity, find the onCreateOptionsMenu method and then look at the menu being inflated. Whatever is inflated in that method controls the menu items displayed.