Hello,
There have been changes for API 33. For example: Geocoder.GetFromLocation, Intent.GetParcelableExtra, etc. There is no documentation or samples as to how to get rid of the compiler warnings.
For Android native APIs, you'll need to check the API changes in the official Google documentation site: Documentation for app developers.
In fact, you don't have to search for it in the documentation site. Using Geocoder.GetFromLocation
as an example, when you hover over this method, VS will indicate that the method is deprecated and will give you the following link to the native API:
[Java documentation for android.location.Geocoder.getFromLocation(double, double, int).](https://developer.android.com/reference/android/location/Geocoder#getFromLocation(double,%20double,%20int\)).
When you click this link, you can see the following prompt to use the new API:
This method was deprecated in API level 33.
UsegetFromLocation(double, double, int, android.location.Geocoder.GeocodeListener)
instead to avoid blocking a thread waiting for results.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.