Objective

This assessment requires you to add email, http and Google maps to the MusicPro application.

Introduction

You are required to add the following features to the MusicPro applications

  • Send an invitation to the current venue in the details view by opening the share facility and loading the email with a title and body text
  • Fetch the details of the weeks top-rated venue from a remote web server using HTTP
  • Add a new activity that displays Google Maps with a marker for the top-rated venue

Project Requirements

  • You must start with the assessment 1 solution provided
  • You must not use any techniques that were not covered in the tutorials

1. Email Message

  • Update the Details Page to include a Send Invitation button as shown below. see image.
  • Set the email title to be Invitation
  • Set the email body to be
    • You are invited to venue_name_here
  • If the venue has an openning time append the text
    • tonight at venue_opening_time_here
  • Open the chooser to select the send application
  • The button should not respond if the name or address is empty

See share and email example below: see image.

NOTE: You do NOT need to open the contact list to select a recipient

2. Fetch Top-Rated Venue

You are to establish a http connection to the following URL and download the JSON file using an AsyncTask. The JSON file will provide the details of the top-rated venue.

http://jellymud.com/venues/best_venue.json

The JSON data will be in the following format.

{
"name" : "Salt House",
"address" : "The Pier, Cairns",
"lat" : -16.9184416,
"lon" : 145.7810191
}

Complete the following tasks:

  • Copy the FlickrFetchr class file to your application
  • Rename FlickrFetch to VenueFetchr
  • Modify it to download the venue details and return a single venue object
  • Execute the AsyncTask thread when the application starts to fetch the top-rated venue

3. Google Map

Complete the following tasks:

  • Create a new Map Activity
  • Open the map activity from the Map button on the main page
  • Pass the downloaded top-rated venue to the map activity see image.

Set the following:

  • Position (center) the map on the location of the top-rated venue using its latitude and longitude
  • Zoom to a factor of 14
  • Display a marker at the venue location
  • Display the name of the venue when the user clicks on the marker
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.