Wednesday, January 26, 2022

How to integrate google map using android Android - Google Maps | From Dilsecoide

Android Integration using google map steps :

google map
Programming language coding apps for beginners :

Before starting development, 

create a google API  key, then mention your google API key in the androidmanifest.xml file  

<meta-data

   android:name="com.google.android.maps.v2.API_KEY"

   android:value="BIHJB89997i7bVJBJVBJvxsbhvbvdvd678shd" />



Create layout file to show map, 

If you know your coordinates /location then put in Marker Method 

googleMap.addMarker(new MarkerOptions() ;

   If you didn't have coordinates then detect your location using the Current location using any location      providers.
   GPS Location Provider
   Network Location Provider
   Wifi Location 
   final LatLng  dilsecodie= new LatLng(your_LATITUDE , your_LONGITUDE);

   Marker TP = googleMap.addMarker(new MarkerOptions()

   .position(dilsecodie).title("dilsecodie")); 

  Now Map integration done 

  Then you can use any other method :

  addCircle()

  getMyLocation()

  setTrafficEnabled(boolean enabled)

  snapshot(GoogleMap.SnapshotReadyCallback callback)


  Note * if still have any doubt can ask in doubt section


* If you are a subject expert and want to contribute to the internet community, welcomes you to write your own tutorial and share with us, if we found them accurate and relevant we will publish them on our website care@dilsecodie.com
 






1 comment:

  1. Thank you for sharing this informative and valuable content here.
    Get the awesome coding snippets at
    source code
    Visit for more Education repositories

    ReplyDelete