I read some questions about this, but I did not find the answer I need.
So the thing is, I have my map installed and I want to capture the current gps location. I checked that my variables are not NULL, but still my result is:
getLastKnownLocation(provider, false);
Gives me a null value, so I need some help. I have added permissions for the location COARSE + FINE. But I usually have all kinds of network data turned off for my phone, because I'm not very happy with the unpredictable cost of data flow in my phone bill. Therefore, for this test, I only have WiFi turned on and connected.
Is there anything else I need to make this possible? I think WiFi should be enough?
android google-maps location
Aleksander Fimreite Dec 07 '13 at 6:54 2013-12-07 06:54
source share