Loads and shows the latest Android related Hacker News articles
The core architecture is based on:
Retrofit for the network layer
ContentProviders + SQLite for the database layer
Latest Design library (RecyclerView, CardView, CoordinatorLayout for animations) for the UI
Some comments:
-
Hacker News API gives unstable json ( title or story_title, url or story_url may or may not contain data), so app filters whatever field brings the valid information. The only reliable id I found was objectID field, which is used as unique key in the database.
-
Some News don't contain url at all, for such cases app shows a Toast.