I want to create a current location button to get the current address of the user. Currently I am using fusedLocationClient.lastLocation but its slow and sometimes it does not work.
Is there a better and updated way to get the current address from the user in 2023 using Kotlin.
Have a nice day!
Take a look at simple and step by step Google code lab:
https://codelabs.developers.google.com/codelabs/while-in-use-location/#1
You can also use and modify their complete template where is available on GitHub