Reference no: EM133383866
Part 1: Create an Android program with android studio, use Volley to read the list of Canadian universities and colleges and other related data from API, and then use Recycler View in Android to display Canadian universities and the name of the college, province and web page address, or n/a if there is no province.
The end result looks like this image.
Part 2: Make a Google Developer account and get the appropriate API Key to be used in your android app. Once you have all setup on google cloud console, you are required to setup the classpath, id and dependencies in Android Studio, add appropriate permissions in AndroidManifest file.
Before you start coding, set the current location of your Emulator to Canada's Wonderland. please follow the instructions in the lecture recording on how to setup the current location of your emulator to a specific place.
As soon as your application launches, it should show Google Maps with a marker (pin) dropped at the current location of your emulator which is set to Canada's Wonderland. Make sure to set all the properties of the marker, e.g., MarkerOptions to drop the pin and center your map to your set location. First screenshot below shows the initial working of your app.
On the click on the marker (pin) on the map, your app should show a custom InfoWindow as shown in the second screenshot above. Please note the followings:
• You are required to create a separate .xml file that has an ImageView and 3 TextViews, e.g., ImageView shows the image (you can get any Wonderland image to show); first TextView should display "Canada's Wonderland"; second TextView should display "Theme Park"; third TextView should display "Wonderland Dr., Vaughan, ON L6A 1S6". The final output of this .xml file should look something similar to the screenshot below:
• You are required to display this .xml file as an InfoWindow on the click of the marker.
• You are required to use setInfoWindowAdapter method that would allow you to override getInfoContents method where you can inflate the above xml and return a view that would be displayed on the click of the marker.