I am trying to retrieve my current location on the button click in an editbox using gps or network..i have tried all possible methods which i found in tutorials and older posts.
when we specify NETWORK_PROVIDER to listen for location updates,
Android system makes use of wi-fi ids or internet access points to determine locations
When there is no internet access, it returns null values
Happened with me too, it doesnt get location from cell towers as expected
read into this: no gprs/no wi-fi location updates