#Sales Offer!| Get upto 25% Off:

would now like to create an accompanying Android app to provide smartphone and tablet users an easy way to look up and display restaurants.

Your task is to develop this app. It has the following requirements:

  1. A user should be able to view a map of their current area on their smartphone or tablet. This map should always be positioned at the user’s current position on the earth; when the user changes their physical location, the map should reflect this.
  2. A user should be able to add a new restaurant at their current location. The user should be able to input the following information:

– restaurant name;

– restaurant address;

– cuisine (Indian, Chinese, Italian etc);

– a rating (1-10).

The input should be done using a separate activity. The restaurant should appear on the map as a marker as soon as it has been added.

  1. A user should be able to save all restaurants added so far to file, via a menu option.
  2. The user should be able to set a preference which determines whether restaurants are saved to file automatically when added. If set, all current restaurants must be saved to file.
  3. A user should be able to load all existing restaurants from file. These should be displayed on the map as markers.
  4. The user should be able to load restaurants from the web. You should connect to the following web service:

http://www.free-map.org.uk/course/mad/ws/get.php?year=18&username=user002&format=XXX

(XXX may be either “json” or “csv”, returning the data as JSON or CSV respectively).

The username=user002 filters out the restaurants so that only restaurants added by the user “user002” are retrieved; you may also supply the value “all” to get all restaurants. You will be allocated your own username.

When the restaurants are loaded they should be shown on the map as markers.

  1. If the appropriate preference is set (see requirement 4), a restaurant should be saved to the web after it has been added to the map.

To save to the web, connect to the following web service with a method of POST:

http://www.free-map.org.uk/course/mad/ws/add.php

The following POST parameters must be specified:

username (your username as described in Requirement 6);

name (the restaurant name)

cuisine (the restaurant cuisine)

address (the restaurant address)

rating (the restaurant rating)

lat (the latitude)

lon (the longitude).

year. This must have the value “18”. This is so that the web service knows that it is dealing with data relating to this year’s assignment, not last year’s.

  1. Allow the user to see a list of all restaurants in memory so far (loaded in from file, downloaded from the web, or added by the user). When the user selects an entry in this list, the map should be centred on that restaurant. This should be done using fragments. so that either on a tablet or in landscape mode on a phone (your choice), the list appears on the same screen as the map, while otherwise, the list appears in a separate activity.

Ideally, each entry in the list should show not only the restaurant’s name, but also its cuisine (Indian, Italian, Chinese etc), on a separate line in smaller font.

Tasks

I – Coding task

 

For each requirement above, implement the requirement using the Android API.

 

II – Discussion task

 

Discuss how you have used some or all (as appropriate, depending on the code you have completed) of the following Android topics in your assignment (one or two paragraphs each). Include technical detail on how your code using each technology works.

This discussion must relate to your assignment answer rather than being simply a theoretical discussion. It cannot simply be a copy or a paraphrasing of the lecture notes.

  1. a) How you have used XML layout files in your application
  2. b) Use of findViewById()
  3. c) Communication between activities using Intents and Bundles, and result codes where appropriate
  4. d) Use of preferences
  5. e) File I/O
  6. f) Network communication, including both GET and POST requests as appropriate
  7. g) JSON or CSV parsing, as appropriate
  8. h) Use of fragments

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!