Code example for GoogleMap

Methods: getMyLocation

0
        mMarker.setSnippet(Utils.prettyPrint(position));
    } 
 
    @Override 
    public Location getLocation() {
        return mMap.getMyLocation();
    } 
 
    @Override 
    public void onMyLocationClickIgnored(AddressView sender) {
        LatLng latLng = Utils.locationToLatLng(mMap.getMyLocation());
        CameraUpdate update = CameraUpdateFactory.newLatLng(latLng);
        mMap.animateCamera(update);
    } 
 
    @Override 
    public void onMyLocationChange(Location newLocation) {
        mAddressView.setLocation(newLocation, false);
    } 
 
Connect your IDE to all the code out there  Get Codota for Java