write the code of change location and move map camera in location changed method
@Override
public void onLocationChanged(Location location) {
latitude = location.getLatitude();
longitude = location.getLongitude();
LatLng latLng = new LatLng(latitude, longitude);// Creating a LatLng object for the current location
googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng)); // Showing the current location in Google Map
googleMap.animateCamera(CameraUpdateFactory.zoomTo(15));
}