开发者

Android get last known position of Google Maps

开发者 https://www.devze.com 2023-02-20 04:19 出处:网络
When the user opens up Google Maps on their phone, it immediately shows the position at which it was left during the last use. What I\'d like to do is \"steal\" the last known position of the map from

When the user opens up Google Maps on their phone, it immediately shows the position at which it was left during the last use. What I'd like to do is "steal" the last known position of the map from the Google Maps program that comes with the phone, and position the map in my program that way. I do not want to use the location feature. Is there any way to do this?

Any help i开发者_如何学Cs appreciated, thanks.

-tjw


You still need to ask for permissions, but Android 2.2's passive provider is supposed to return results from other providers without using the actual GPS or network itself, allowing you to piggyback of the results from Google Maps.

0

精彩评论

暂无评论...
验证码 换一张
取 消