79598222

Date: 2025-04-29 11:17:08
Score: 0.5
Natty:
Report link

I am not sure it can be done using the fusedClient. (I am sure somebody will disagree with this). The FusedLocationListner requires a data connection so it can send a request to goggle who then return your location. This means getting your location is dependent on the strength of your device's internet connection and the servers at goggle returning in a timely fashion.

Previously the LocationListener and LocationListenerCompat used the gps on the android device to get the location. These are deprecated interfaces so you will not be able to publish them to the play store. But if this just for your own use I would suggest giving them a try.

(LocationListener no longer works with android Q and above so try the compat. Also you cannot have a silent listener, it must be implemented by the class.)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MunterMan