Android app for use with recordstoreAPI
This Android app is a work in progress.
The app allows user to perform the following functionality on the record store database:
- Browse all albums
- Add a new album
- Update or Delete an existing album (via clickthrough)
- Filter album list on artist name and/or album name
The codebase is split into a number of individual packages
- Model
- Contains album models of different shapes required to properly interact with the API.
- Service
- Constructs and provides an instance of the Retrofit dependency used to make HTTP calls.
- UI.MainActivity
- Provides business level logic for the main page/album browser.
- Also includes the AlbumAdapter and RecyclerView used to control album lists.
- UI.AddAlbum
- Activity used to contain business logic for adding an album to the database.
- UI.UpdateAlbum
- Activity rendered after clickthrough allowing the user to edit album details or delete an album.
Note: Retrofit directly access a localhost version of the API. To run this programme you are required to change the BASE_URL in RetrofitInstance.java
private static final String BASE_URL = "http://10.0.2.2:8080/api/v1/recordstore/";
The above can be used if you clone and run a local instance of recordstoreAPI
- Inputs
- date/number for releaseDate/price
- spinner/dropdown for genre
- Auth (in tandem with the API)
- Styling cleanup
- Clicking on a Album while a filter is active takes the user to an incorrectly populated UpdateAlbumView