Android 模拟器发送网络提供商更新 [英] Android emulator send network provider updates

查看:27
本文介绍了Android 模拟器发送网络提供商更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将更新发送到 Android 模拟器,就好像它们来自网络"提供商一样.DDMS 似乎作为gps"提供者发送,无法更改.

How do I send updates to an Android emulator as if they were coming from the "network" provider. DDMS seems to send as the "gps" provider, with no way to change it.

推荐答案

据我所知,很遗憾,您不能在模拟器中使用网络"提供程序.

As far as I know, you can't use the "network" provider in the emulator, unfortunately.

注意:提供模拟位置数据作为 GPS 位置数据注入,所以您必须从 GPS_PROVIDER 请求位置更新,以便模拟位置数据工作.

Note: Providing mock location data is injected as GPS location data, so you must request location updates from GPS_PROVIDER in order for mock location data to work.

http://developer.android.com/guide/topics/location/strategies.html#MockData

这篇关于Android 模拟器发送网络提供商更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆