Replace default GPS signal provider on Android devices

前端 未结 3 1470
执笔经年
执笔经年 2021-02-03 11:42

I would like to replace the default GPS location provider on android phones with my own coordinate source.

Is there any layer/API/library/provider that would allow to b

3条回答
  •  隐瞒了意图╮
    2021-02-03 12:23

    Replacing the "default" is not allowed at this time and the only work around is to create a mock provider. First you must set the security permission:

    
    

    Second, set your code to use the mock provider which you will create. There is some excellent information about how to accomplish this here: http://diffract.me/2009/11/android-location-provider-mock/

提交回复
热议问题