Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.01 KB

README.md

File metadata and controls

18 lines (10 loc) · 1.01 KB

hackernews-reader

Loads and shows the latest Android related Hacker News articles

Demo

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:

  1. 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.

  2. Some News don't contain url at all, for such cases app shows a Toast.