Files
How It Works
The app that I created for this programming assignment is called XKCD Mobile. It allows users to cycle through XKCD comics starting from the first one ever created. It displays an XKCD comic, the comic’s title and a relevant Flicker image as well!
It’s a very simple application. It really only has two navigation buttons, one to progress to the next comic and one to backtrack to the previous comic. Each time one of these buttons is pressed, the image URL is updated depending on the button pressed (if next is pressed, the image URL is changed from "http://xkcd.com/1/info.0.json” to "http://xkcd.com/2/info.0.json” and vice versa). At the same time, the title of the new comic is parsed into Flicker’s search query and the first Flicker image is displayed at the bottom of the app. This Flicker image is not always relevant to the comic because no advanced search-relevance algorithm is implemented.
These buttons are placed near the top with the titles in order to conserve space and allow the largest potential image sizes for both the XKCD comic and Flicker image. I think its an adequate design for the this type of application because as you click “prev” or “next”, all the content updates right below the buttons. It provides immediate feedback. I placed the XKCD picture at the top because the app’s main function is to display XKCD comics. The secondary function is to display the related flicker image so it’s placed right under the pulled XKCD comic.
Comments