GithubHelp home page GithubHelp logo

sync-adapters-lab's Introduction

title type duration creator
Sync Adapters Lab
lab
1:25
name city
Drew Mahrt
NYC

Sync Adapters Lab

Introduction

Note: This should be done in pairs.

In this lab, you will be setting up a sync adapter to get the latest stock prices for the companies in your stock portfolio app (the Content Provier lab) using the MarkIt On Demand API. The prices should update every minute.

In addition, stocks that are on the NASDAQ should be shown differently than the other stocks (ie making the background green).

You will be making a new app for this lab, separate from the content providers lab.

Exercise

Requirements

  • Display stock prices from your portfolio app
  • Update the stock price every minute using a Sync adapter
  • Store the prices after each update in a local database
  • Display the NASDAQ stocks in a unique manner
  • Display the last updated time on the screen

Hint: You can use the Content Provider from the first app to retrieve and update data for the stocks. There is no need to create a new content provider or database.

The files you need to create:

  • MainActivity
  • Authenticator Service
  • Authenticator
  • Stock object (for displaying in the RecyclerView)
  • RecyclerView Adapter
  • Sync Adapter
  • Sync Service
  • authenticator.xml
  • syncadapter.xml

Bonus:

  • Allow the user to set the sync period
  • Allow the user to choose which stock exchange shows up differently (NASDAQ must be an option)

Starter code

Solution code from the Content-Providers lab has been given to you, including the contract you need to access its content provider. You are welcome to use your own solution code if you want to.

Deliverable

An app that meets the above requirements.

sync-adapters-lab's People

Contributors

ecarrasco91 avatar drewmahrt avatar

Watchers

James Cloos 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.