So I wanted to detect the user current location when my main activity starts.
The way I implemented was to have the GPS location manager and the Wifi location manager and one locationlistener listening to Both. As soon as the locationlistener found the current location. it will stop listening for location change and consider this location the current location.
My question is, do you see any danger in using both GPS and Wifi? I used both in case the device don’t have the GPS activated or vice versa ….
Thanks,
I have seen several places where they actually recommend this kind of approach. However, word of warning: always make sure you have it made so that if no lock is made it times out. Otherwise you may melt phones if they are indoors.