Mobile ICP5 - abndnc/CS5590-0003 GitHub Wiki
SQLite:
1.Open the use case SQLite provided in the source code and understand how the control flows from source code to UI
2.Add the following functionality to the app:
•deleting employee or employer details
•Updating employee details
Firebase:
1.Open the use case 'Firebase'provided in source code and understand how the control flows from source code to UI
2.Add ANY ONE OF THE following functionalities to the app:
•Log out
•Delete feature
Implementation:
SQLite: deleteDB in EmployerActivity was implemented by using delete() method from SQLiteDatabase. The function got the input from user and made a query based on that input to look for the exact instance that needed to be deleted. Same idea was used for deleteDB in EmployeeActivity. For updateDB(), update() method from SQLiteDatabase was used instead to update new employee information from the database.
Firebase: For updateUser(), setValue was used to update the information as long as the text boxes were not empty after tapping update button. For deleteProfile(), getCurrentUser() method was used to mark the current user in activity and delete() method from FirebaseUser to remove that instance in the authentication database.