car/app/app/src/main/java/androidx/car/app/AppManager.java
// Location permissions should be granted by the app if they need this API.
Location permissions should be granted by the app if they need this API.
Location permissions should be granted by the app if they need this API .
@SuppressLint("MissingPermission")
    void startLocationUpdates() {
        stopLocationUpdates();
        LocationManager locationManager = mCarContext.getSystemService(LocationManager.class);
        locationManager.requestLocationUpdates(LocationManager.FUSED_PROVIDER,
                LOCATION_UPDATE_MIN_INTERVAL_MILLIS,
                LOCATION_UPDATE_MIN_DISTANCE_METER,
                mLocationListener,
                mLocationUpdateHandlerThread.getLooper());
    }
@ SuppressLint ( "MissingPermission" ) void startLocationUpdates ( ) { stopLocationUpdates ( ) ; LocationManager locationManager = mCarContext . getSystemService ( LocationManager . class ) ; locationManager . requestLocationUpdates ( LocationManager . FUSED_PROVIDER , LOCATION_UPDATE_MIN_INTERVAL_MILLIS , LOCATION_UPDATE_MIN_DISTANCE_METER , mLocationListener , mLocationUpdateHandlerThread . getLooper ( ) ) ; }
Location permissions should be granted by the app if they need this API.
Location permissions should be granted by the app if they need this API .