Google recommends using FusedLocationProviderClient
instead of LocationManager
Using LocationManager
I could subscribe to change status events of providers by using LocationListener
interface:
void onProviderEnabled(@NonNull String provider) {}
void onProviderDisabled(@NonNull String provider) {}
How can I do it using FusedLocationProviderClient
?