Skip to content

In Class Programming 5

Veeresha Thotigar edited this page Sep 24, 2018 · 6 revisions

Team Details:

Member 1:

Member 2:

Professor: Dr.Yug Yung Lee.

Course: CS5551-Advanced Software Engineering.


Objective:

The assignment is about creating Android application showing marker with details of current latitude and longitude using map activity.

  1. Started with new andriod project using andriod studio. Added an Google map activity to the project.

  1. Generated API key from google account and also enabled the maps for Android application, then copied the same API key to google_maps_api.xml file.

  1. Placed the location permission for the application in manifest file.

defined the private function to request run-time permission to grant/deny the use of location permission. Below to that overridden the onRequestPermissionsResult() function.

  1. Placed the fragment element for maps in the activity file.

  1. Defined the private function showCurrentLocation() to set the markers in the current location.

  1. On map ready @func onMapReady() all the above defined private functions been called as shown in the below logic.

Output:

Video Link : https://youtu.be/oaSSb93iQPM

Conclusion:

We learnt to build the Android application that shows the currents application with latitude and longitude on the marker.

References:

Partner Wiki Page:

https://github.com/saisampathkumar/CS5551_41_ICP/wiki/In-Class-Programming-5