Arnold Laishram
Arnold Laishram

Reputation: 1881

Alternate for googleMap.setOnMyLocationChangeListener since deprecated

Since googleMap.setOnMyLocationChangeListener is deprecated what is the best way for checking the my current location continuously?

I couldn't find any answer.

Any help much appreciated.

Upvotes: 5

Views: 5712

Answers (1)

Prokky
Prokky

Reputation: 845

In the documentation it is said:

use com.google.android.gms.location.FusedLocationProviderApi instead. FusedLocationProviderApi provides improved location finding and power usage and is used by the "My Location" blue dot. See the MyLocationDemoActivity in the sample applications folder for example example code, or the Location Developer Guide.

Upvotes: 3

Related Questions