Answered step by step
Verified Expert Solution
Question
1 Approved Answer
8 . Lists: Navigation and Information Display 8 . 2 . Exercises - Chapter 6 SUPER! Market APP 1 . Create an app called Super!
Lists: Navigation and Information Display
Exercises Chapter
SUPER! Market APP
Create an app called Super! Market using the StartSpark. The MainActivity should allow the user to save the name and address of a supermarket into a database table. Add a Rate button to the activity. the Rate button will open a second activity that will allow the user to rate the establishment on a to scale for each of the five dimensions:
liquor department
produce department
meat department
cheese selection
ease of checkout.
A Save button will store the ratings in a table and display the average rating on the Rating Activity. Each rating should be stored individually in a separate field so they can be adjusted later. Add a button to navigate back to the MainActivity
Modify the Super! Market app to include a list of saved supermarkets. The app should be modified so that the list is the first activity seen in the app. The list activity should do the following:
It should display the supermarket name and average rating for each spot saved
Tapping an object in the list opens the rating activity created previously, and it operates the same way, except that closing the activity now updates the rating in the list.
It allows the user to delete a supermarket from the list and the databases
It contains a button that displays information about the selected supermarket in the main activity.
The list activity should have a button to navigate to the main activity where the user enters the supermarket.
Add a Map button to the main activity and list activity that allows the user to navigate to the map activity. The map activity should do the following:
It should display all supermarkets saved with a custom icon.
Tapping the icon should display the name, address, and average rating.
Tapping the info window displaying the name and address should open the main activity, where the user can update information about the supermarket. Hint: investigate setOnInfoWindowClickListener to complete this.
The map activity should have a button to navigate to the main and list activities.
Challenge
Add features to make the app more userfriendly and interactive.
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