Can I use the same locationManager for requesting updates for the gps and network provider, or should I create two locationManagers and separate onLocation changed functions etc. I got really confused about this
Can I use the same locationManager for requesting updates for the gps and network
Share
You will want to check and see which one is available in the order you want to use them and then use the corresponding one:
You can use the same listener because all the listener’s methods take as a parameter a
Locationobject which is source agnostic: