Skip to content

A simple android application for fetching images from server and display in a recycler view

Notifications You must be signed in to change notification settings

Shipra-jain/Doosk

Repository files navigation

Doosk

This is a simple app to fetch images from server and display in a recycler view.

What tha app does: • Make a single request to Flickr’s API and parse results • Use parsed results to determine the images to display • Build a single screen app that scrolls vertically through dog images

Framework Used: Doosk uses Google's Volley Framework to make network calls for fetching data to create image urls. The thumbnail URL and bitmap of an image are cached in application memory. LRUCache class is used to manage Image URL and bitmap map. When an image is clicked, another network call is made to fetch original size image.

Yahoo Flickr API Key d5c7df3552b89d13fe311eb42715b510

Dog Photos Query: Get 40 Dog pictures from Flickr select * from flickr.photos.search(40) where text="Dog" and api_key="d5c7df3552b89d13fe311eb42715b510"

The REST Query: https://query.yahooapis.com/v1/public/yql? q=select%20*%20from%20flickr.photos.search(20)%20where%20text%3 D%22Dog%22%20%20and%20api_key%3D%22d5c7df3552b89d13fe31 1eb42715b510%22&format=json&diagnostics=true&callback=

Parsing Individual Pictures Original size: http://farm{farm}.staticflickr.com/{server}/{id}_{secret}.jpg Thumbnail: http://farm{farm}.staticflickr.com/{server}/{id}_{secret}_t_d.jpg Where {farm}, {server}, {id}, {secret} are inputs from the XML/JSON response.

References: 1)http://www.androidbegin.com/tutorial/android-parsing-yql-using-json-tutorial/ 2)https://traversoft.com/blog/2016/01/31/replace-listview-with-recyclerview/ 3)http://abhiandroid.com/programming/volley

About

A simple android application for fetching images from server and display in a recycler view

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages