Git Product home page Git Product logo

doosk's Introduction

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

doosk's People

Contributors

shipra-jain avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.