title | type | duration | creator | ||||
---|---|---|---|---|---|---|---|
Content Providers |
lab |
1:20 |
|
This lab can be done in pairs.
In this lab, you will be creating an app that will use the MarkIt On Demand API to create a Stock portfolio. All data must be stored in a local database through a Content Provider. The user must be able to add a stock as well as the quantity they bought to the database in a dialog window (see screenshots below). On the screen, you must show the company name and quantity of stock purchased in a RecyclerView.
The MarkIt API will be used to retrieve the company name and quantity of stock for each company.
- Use a Content Provider to store data in a local database
- Store the stock symbol, company name, quantity of stock, and the stock exchange name in the database
- Use the MarkIt On Demand API
- Display the Company name and quantity of stock for each company in a RecyclerView
- Allow the user to enter a new stock using a dialog window
Bonus:
- Display the remaining information in the database for each stock entry
- Use ContentObservers to reflect content changes on the UI
Use the starter code in the starter-code folder if you would like.
An Android app that follows the requirements above:
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].