-
Notifications
You must be signed in to change notification settings - Fork 0
In Class Programming 5
Veeresha Thotigar edited this page Sep 24, 2018
·
6 revisions
Member 1:
- Name : Veeresh M Thotigar
- Class ID: 53
- Mail Id: [email protected]
Member 2:
- Name: Sai Sampath Kumar Raigiri
- Class Id: 41
- Mail Id: [email protected]
The assignment is about creating Android application showing marker with details of current latitude and longitude using map activity.
- Started with new andriod project using andriod studio. Added an Google map activity to the project.
- 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.
- 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.
- Placed the fragment element for maps in the activity file.
- Defined the private function showCurrentLocation() to set the markers in the current location.
- On map ready @func onMapReady() all the above defined private functions been called as shown in the below logic.
Video Link : https://youtu.be/oaSSb93iQPM
We learnt to build the Android application that shows the currents application with latitude and longitude on the marker.
- https://developer.android.com/docs/
- https://developers.google.com/maps/documentation/android-sdk/current-place-tutorial
- https://developers.google.com/maps/documentation/android-sdk/signup
https://github.com/saisampathkumar/CS5551_41_ICP/wiki/In-Class-Programming-5