Android Location deprecated?

I noticed that Android Location seems to be deprecated. I found in the API reference (https://developer.android.com/reference/android/location/package-summary.html) this: This API is not the recommended method for accessing Android location.

It is quite confusing because there is not information about this in the API of the class Location. And it still works well.

I guess there are some good reasons to stop using the Location class. I would like to know which is the recommended way to locate a user and implement a location-based application. Do I have to change my app to the new way that is linked? I am a little bit disappointed that this remark is only on one page.

Android Location deprecated?