Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need all nessasary kotlin and xml files for the following Create a new application which implements a simple FILE based database in Android using

i need all nessasary kotlin and xml files for the following Create a new application which implements a simple FILE based database in Android using a disk file and an array/list in memory. The application will have the ability to create new records, update/edit 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 array/list)
The database will have the following fields:
recordID, name, description, price, rating, date_modified, date_created.
recordID, date_modified, and date_created 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 1 and 5.
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 4 different activities that implement the CRUD associated with the database.
Fill the database(file) with 40 records of sample data. Provide a button called "Test Data" that will fill your database with 40 random records.
Create Record
Read Record
Update/Edit Record
Delete Record
6 Fields in Record
HomePage is RecyclableList of ALL records
Clicking on one item in the list goes to SHOW page
Show page has edit and delete buttons
delete button has confirmation dialog and deletes properly
edit button goes to edit page
save changes on edit page goes to show page and saves data
Add Record button on Main Page goes to new activity and creates record
40 records created in database with a button/function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions