Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a new application which implements a simple FILE based database in Android using a disk file and an array / list in memory. The
Create a new application which implements a simple FILE based database in Android using a disk file and an arraylist in memory. The application will have the ability to create new records, updateedit records, show a list of all the records in a scrolling list, and delete records from the file. The word DATABASE below is the same as saying a written file and arraylist
The database will have the following fields:
recordID, name, description, price, rating, datemodified, datecreated.
recordID, datemodified, and datecreated will never be Editable by the user and will be auto created and updated by the program.
Name is required so you must use validation on the input field and never store an empty string for this field.
Date modified should be automatically updated when anything changes in the record. Date created is the date the record is created. These should not be editable. Rating should be a value between and
The default home page will show a RecyclableList of all the items in the database with the name, and short description, price and rating in each "cell" of the list. Clicking on one of the cells, will bring up another page which will show the detail of the page with all the other fields. From this page, the user should be able to edit the data and delete the record. There should be different activities that implement the CRUD associated with the database.
Fill the databasefile with records of sample data. Provide a button called "Test Data" that will fill your database with random records.
Example MOCKUPLinks to an external site.
I have lots of older videos that use Java as the language, but this is a case where LOTS of videos and tutorials are using Java still and it is a good lesson in converting the knowledge to work with newer languages.
Have fun!
Submit the entire project as a zip file here.
Rubric
File Based DB and CRUD
File Based DB and CRUD
Criteria Ratings Pts
This criterion is linked to a Learning OutcomeCreate Record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeRead Record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeUpdateEdit Record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeDelete Record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning Outcome Fields in Record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeHomePage is RecyclableList of ALL records
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeClicking on one item in the list goes to SHOW page
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeShow page has edit and delete buttons
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning Outcomedelete button has confirmation dialog and deletes properly
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning Outcomeedit button goes to edit page
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning Outcomesave changes on edit page goes to show page and saves data
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning OutcomeAdd Record button on Main Page goes to new activity and creates record
pts
Full Marks
pts
No Marks
pts
This criterion is linked to a Learning Outcome records created in database with a buttonfunction
pts
Full Marks
pts
No Marks
pts
Total Points:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started