开发者

Is it possible, and if so how do you add external location data to LocationManager on Android?

I have a WiFi device that outputs GPS location data over UDP Multicast. I want to create a background service for Android that will receive this location data and include it into LocationManager so other applications may use it's data.

I understand it is possible to use a test provider though this would require the applicat开发者_运维百科ion to include the permission android.permission.ACCESS_MOCK_LOCATION to use the location data. This seems like a very dirty way seeing as this location data isn't mocked.

I've also noticed quite a few Location Spoofing applications on the Android Market which tends to make me believe this is possible. Any help is appreciated, Thank you.


There is no way to do this, short of rolling your own firmware or using the mock provider approach that you outline.

I've also noticed quite a few Location Spoofing applications on the Android Market which tends to make me believe this is possible.

All seem to use the mock provider approach.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜