Code Monkey home page Code Monkey logo

mysimpletweets's Introduction

Project 4 - Twitter With Fragment

Name of your app is an android app that allows a user to view home and mentions timelines, view user profiles with user timelines, as well as compose and post a new tweet. The app utilizes Twitter REST API.

Time spent: X hours spent in total

User Stories

The following required functionality is completed:

  • The app includes all required user stories from Week 3 Twitter Client
  • User can switch between Timeline and Mention views using tabs
    • User can view their home timeline tweets.
    • User can view the recent mentions of their username.
  • User can navigate to view their own profile
    • User can see picture, tagline, # of followers, # of following, and tweets on their profile.
  • User can click on the profile image in any tweet to see another user's profile.
  • User can see picture, tagline, # of followers, # of following, and tweets of clicked user.
  • Profile view includes that user's timeline
  • User can infinitely paginate any of these timelines (home, mentions, user) by scrolling to the bottom

The following optional features are implemented:

  • User can view following / followers list through the profile
  • Implements robust error handling, check if internet is available, handle error cases, network failures
  • When a network request is sent, user sees an indeterminate progress indicator
  • User can "reply" to any tweet on their home timeline
    • The user that wrote the original tweet is automatically "@" replied in compose
  • User can click on a tweet to be taken to a "detail view" of that tweet
  • User can take favorite (and unfavorite) or retweet actions on a tweet
  • User can search for tweets matching a particular query and see results
  • Usernames and hashtags are styled and clickable within tweets using clickable spans

The following bonus features are implemented:

The following additional features are implemented:

  • List anything else that you can get done to improve the app functionality!

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

Describe any challenges encountered while building the app.

Open-source libraries used

  • Android Async HTTP - Simple asynchronous HTTP requests with JSON parsing
  • Picasso - Image loading and caching library for Android

License

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mysimpletweets's People

Contributors

seongl avatar

Watchers

 avatar

mysimpletweets's Issues

Project Feedback

Week 3: Twitter Client

๐Ÿ‘ decent work. A few notes after checking out the code:

  • Good to see you were able to format the timestamp cleanly
  • Consider adding pull to refresh for the home timeline using the SwipeRefreshLayout
  • Good to see you added the tweet to the home timeline after you posted new on compose
  • Consider adding the character count for Compose Activity to limit to 140. See this event handler for more details.
  • Consider adding local persistence of tweets by using DBFlow in the Tweet and User. See the persistence guide and this other guide for more details.
  • Try out the third-party ButterKnife library to simplify a lot of boilerplate findViewById() calls.
  • Consider using a more robust HTTP client lib such as Retrofit or OkHttp.
  • Consider using GSON to conveniently serialize and deserialize API responses into objects.

Here's a detailed Project 3 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, ActionBar, Navigation, Models, Authentication, API Communication, Persistence, et al) and see how they all fit together. We are close now to a turning point in the course where you should be hitting a "critical mass" towards your knowledge of Android.

Project 4 Feedback

Week 4: Twitter Redux

๐Ÿ‘ decent work. A few notes after checking out the code:

  • Good to see you used ViewPager and TabLayout. These
    components are recommended by Material Design to enhance user experience and are found in majority of the apps. ViewPager can also be used separately without TabLayout to show paging of content using swipe in any section of the screen layout.
  • Nice to see you used a drawable and styles to customize the app. Get more familiar with creating custom drawables and styles by trying to customize different widgets.
  • Nice to see you played around with styling the sliding tab strip
  • Correctly and appropriately used OnClickListeners on the user's profile image to navigate to their profile view
  • Consider not calling the ProfileActivity directly from the profile image's OnClickListener which is part of the Fragment as the Fragment should be de-coupled from any specific Activity to allow it to be modular. See this communicating with fragments for more details.
  • Glad to see you properly hooked up each of the different timelines to infinitely paginate.
  • Consider de-duplicating the code that manages the tweets response from the API in Timeline and Mentions Fragments as they are similar. Create a method with common logic in the base Fragment that can be shared across both the Fragments.
  • Consider using a more robust HTTP client lib such as Retrofit or OkHttp.
  • Consider adding local persistence of tweets by using DBFlow in the Tweet and User. See the persistence guide and this other guide for more details.

Here's 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.

This week (Week 5), we are going to cover the last major piece to the Android puzzle and that is using the hardware and SDK components such as the camera, photo gallery, location, maps, etc. After that, Week 6 and week 7 we will be covering a few important intermediate topics such as more about styling and animation as well as testing.

Following the bootcamp, we are going to have a public demo day to celebrate the progress you've all made with our next batch of Android students and multiple companies attending to see the group projects that you all have built. We are going to help however we can over the next few weeks to get the team project apps in shape for that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.