Exercise: Android, REST, JSON, lists

In this exercise you must make an Android application which consumes a REST resource http://hmkcode.appspot.com/rest/controller/get.json

The REST resourse returns a JSON string. You must parse this JSON string.

In the application you must use a ListView to display the data.

Model class Article

Make an ordinar class (not Activity) Article.

Call the REST resource from a browser or from Postman to see which properties the Article class needs (and the type of the properties).

List - Detail

Show a list of items (in this case articles: titles only). Use ListView or ListActivity + an ArrayAdapter.

When the user clicks (OnItemClickListener) an item the applications shows the details on this item.

Detail

URL: open browser

In the Detail activity: When the users clicks the URL you must open a browser to show the content of the URL.

Making an Intent to open a browser

Display lists

An Article has a number of categories and a number of tags. Show theres as two Spinners (or another kind of List). You probably need an ArrayAdapter.