Question: Assignment Tasks: 1 . Create a new branch in Git. Start by selecting the Git menu in Android Studio and select Branches . In the
Assignment Tasks:
Create a new branch in Git. Start by selecting the Git menu in Android Studio and select Branches In the resulting dialog click New branch and call it lab This lab will build on lab in order to save our todo list to an SQLite DB
Create a class that extends SQLiteOpenHelper to createupgrade your database. Ensure you use static variables for all column names, database name, and database version.
When a user opens the app, it should load all of the todos they have previously saved from the database as well as their urgency.
When the user presses the Add button, the todo should be added to the database as well as the list of todo items from lab
Modify the onItemLongClickHandler in the ListView so it also deletes the message from the database.
Write a function called printCursorCursor c This function will be used for debug purposes and should print the following info to the Log window every time the main activity is loaded:
a The database version number using dbgetVersion for the version number.
b The number of columns in the cursor.
c The names of the columns in the cursor.
d The number of results in the cursor.
e Each row of results in the cursor.
Ensure that all the labels and buttons in your app use the strings.xml files and are localized properly in both English and French. Use Google Translate to get the French translations of your English buttons if needed.
Report format: Please take snapshots of your emulator output with different outputsuse casesapp running with different windows add a brief explanation of your code and snapshots in a word doc. Submit the word doc on brightspace in the lab folder.
Include a link to your GitHub repository as comment on Brightspace when submitting the assignment on BrightSpace.
Heres a full recording of how the app should function the flash is from closing and reopening the app
Rubric
Criteria Points
The app compiles and runs without crashing
The todos are loaded from the database when the app launches
Adding a new todo saves in the DB
Deleting a todo deletes it from the DB
Cursor information is shown in logcat window
All itemslabels are translated into French
Total
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
