How to show Google Map inside android app including location pin point tag to show your office college location.
Google Maps is word’s largest online maps college available on internet managed and served by Google itself. It is used by millions of peoples around the earth to find any place any where at any time with just few clicks. It also contain the most important information about the places like street name, city name, country name and popular place there. People can also add their home, office, buildings, schools, society in it by submitting their request to Google maps authentication. So in this tutorial we are going to add google map inside our android application with a certain type of pin point location tag method. So here is the complete step by step tutorial for Google Maps Integration in Android Application Studio Example.
Things required before getting started in this project :
- Internet connection .
- Longitude & Latitude of your location.
- A Gmail ID – To create Google Maps API key .
- Android studio latest updated version .
- Just read the rest of tutorial .
Getting stated with Google Maps Integration in Android Application Studio Example step by step guide .
1. Start a new project in Android Studio .
2. Select minimum SDK .
3. Select Google Maps Activity .
5. Click on finish button .
6. After done loading your project click on google_maps_api.xml (debug) file .
7. Next step is to open your web browser and log in ti Gmail with your Google Gmail account .
8. Select and copy the whole line starts from ” https://console.developers.google.com/flows/enableapi? “ till the end like i did in below screenshot .
9. Paste the whole copied line into your web browser in which you have already logged in with your Gmail account .
10. Now Google APIs application registration page will be open on your screen so click on Continue button.
11. Click on Create API key button .
12. Here you go now your Google Maps authentication api key will be successfully create and shows on your screen, Copy the key .
13. Paste the copied api key into your google_maps_api.xml ( debug ) file .
Here you go guys now all the api related chapter is finish next step is to start coding.
Add the INTERNET, ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION permission in your AndroidManifest.xml file.
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Code for MainActivity.java file.