Comments (1)
解决,来自Stack Overflow @blackkara
p lm.removeTestProvider(LocationManager.GPS_PROVIDER);
When remove the provider, just let Gps to receive fresh location, then it will be fixed. You can test it
Set your mock location for Gps
Go to GoogleMaps and see your mock location (Gps must be enabled)
Turn back your app and stop mocking
Go again GoogleMaps, and wait until Gps provider receive a real location. It could take a bit time, when i tested in home, taken 1-2 minutes but in balcony just 5 seconds.
from mockgps.
Related Issues (20)
- 打赏
- 老哥稳,看好你
- 我把你的项目加了摇杆 HOT 1
- 无法访问BaiduMap
- 华为手机关掉app后再次打开会闪退
- Implement Google maps or OpenStreetMaps HOT 1
- EMUI10 打开闪退
- 微信啊,钉钉啊,都不起作用 HOT 1
- 今天被钉钉识别了 HOT 4
- 新版的手机一直报java.lang.IllegalArgumentException: provider doesn't exist: gps
- 使用虚拟定位以后,手机app导航(高德)严重滞后
- DD更新了,不能用了
- 安卓11无法修改定位了 HOT 9
- 作者您好,关于安卓11 的适配问题 HOT 11
- 支持adb方式去发送定位的经纬度嘛 HOT 1
- 一加8 Android10定位无效 HOT 1
- 华为mate40 ,虚拟定位对飞书无效
- 2021-05-21 还想等老哥更新啊 HOT 1
- 您好,作者还更新吗,我最近更新到安卓12了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockgps.