Question: Android SQLite and Location: App Requirements: There needs to be a text input field that the user can use to input text and a submit

Android SQLite and Location: App Requirements: There needs to be a text input field that the user can use to input text and a submit button. Upon hitting the submit button the text in the text field should be saved to a SQLite database. In addition to the text, the latitude and longitude where the phone was located should be saved along with it in the same row. In the event the user denied location access the latitude and longitude should be set to 44.5 and -123.2 respectively, the coordinates of OSU. So if permission to access location data was given, the current phone location should be used. If they were denied then the coordinates of OSU should be used. There should then be a list of all the rows that displays the text that was entered, the latitude and the longitude. This can be in the same activity as the one used to enter the data or it can be in a separate activity at your discretion. The deliverables for this assignment are a video, no longer than 5 minutes (preferably more like 2 or 3), that shows the starting state of the data (probably an empty list). The user should then add 3 entries along with explicitly denying permission when it is requested. Those entries should then be shown in the table. Then the user should add 3 more entries, this time giving permission to use location data, changing the latitude and longitude for each entry. It should then show the table containing all 6 entries. With the latest 3 having the correct latitude and longitude data. Finally close the app and open it again to show that the data persisted. You should make sure you actually close the app, not just pause it. This can be done by hitting the 'square' button that lists all the running apps, waiting a moment for the X to show up in the corner of the app, then hitting the X to close it. You can also force stop the app from settings. tl;dr Add three things without location permission, show it worked, add 3 things with location permission, show that all 6 things are there and that the last 3 had correct location data. Then close the app and open it again to show the data saved.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!