Giter Site home page Giter Site logo

pop500's Introduction

Pop500

Simple demo application that shows infinite 'Popular' stream from 500px.com.

Okay, this was demo app for the interview for 500px. It didn't work out, so I decided to use it as a testbed for some of my pet projects.

Features

  • "Inifinite" ListAdapter. Only 4 bytes are permanently stored in memory for each image. Given that 'Popular' stream is about 15000 photos, that means that only 60k of memory is used.
  • Photo metadata is stored in LRU cache and loaded on demand.
  • Images are stored in LRU cache. About 1/3 of application memory is allocated for images. That allows cache to hold about 120 pictures on Nexus 4. Images are stored in RGB_555 format to lower memory consumption.
  • Both metadata and photos are prefetched for improved user expirience.

Limitations

Application only works on Android version 4.0 and higher. Tested only on Nexus 4 and Nexus 7 on Android 4.4. Error handling is simple - logging to ADB and toast messages. If you click on an image that is not yet loaded you'll get empty screen - there is no notification from downloader to image view activity.

Build

Maven 3.1.1 is required.

To build: mvn clean package android:apk

To run: mvn clean package android:run

Disclaimer

This application is in no way affiliated with 500px, Inc, except for the fact that it uses their awesome API.

pop500's People

Contributors

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