The abstract method of LocationListener onLocationChanged(Location) is called when the location has changed. LocationListener: This interface is used to receive notification when the device location has changed.In the onMapReady(GoogleMap) method we can add markers, listeners and other attributes. The onMapReady(GoogleMap) method of OnMapRead圜allback interface is called when the map is ready to used. OnMapRread圜allback: This callback interface invokes when it instance is set on MapFragment object.To display the user current location we need to implements some interfaces and there callbacks methods. The process of generating Google Map API is described in tutorial Android Google Map. For doing this we need to generate Google Map API key. Now in this tutorial we will display and place marker at the user current location. In the previous tutorial of Android Google Map, we simply displayed the default coordinates (location) set by the MapsActivity.java class file. Next → ← prev Android Google Map Displaying Current Location
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |