The next step was to obtain the handset's location from the phone. This is achieved most easily by using the getLastKnownLocation() method. This gets the most recent location data stored on the handset, which is regularly updated by the network (using mast connection data, and possibly(?) the wifi data Google collected with their StreetView cars). It isn't as accurate as using GPS, it is usually a few hundred metres out, but it will be adequate for my purposes.
The code is available here.
No comments:
Post a Comment