You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Changelog
Create ProductProvider that is a ContentProvider for managing an SQLite database of product entries. Each product has a name, price, quantity, supplier, supplier phone number, supplier email, and picture.
Create InventoryActivity that presents a list of products. Each list item displays the product's name, price, quantity, and a sale button to decrement the product's quantity by 1. Options to add a dummy product entry and delete all product entries are available in the action bar. An add product button allows you to navigate to DetailActivity to create a new product. Clicking on a list item navigates you to DetailActivity to modify the existing product.
Create DetailActivity that presents a form for adding a new product or modifying an existing product. Text fields for entering the product's name, price, quantity, supplier info are available. If a text field contains an invalid value, an error is set on the field and saving is disabled. Change quantity buttons allow easy modification of the quantity value. The call supplier button starts an intent to the phone app. The email supplier button starts an intent to the email app. The change photo button presents options to take a new photo, choose an existing photo, or remove the photo for the product picture. The save product button saves the product with the chosen values and sends the user back to InventoryActivity.