【问题标题】:Network Provider failed after turning off Wifi & mobile network location关闭 Wifi 和移动网络位置后网络提供商失败
【发布时间】:2014-01-22 03:40:08
【问题描述】:

我正在使用融合位置提供程序在我的应用程序中获取用户位置。我连接到 Wifi 并通过网络提供商获取用户位置,我无法使用 gps 提供商,因为我在建筑物中。

当我在设置中关闭并打开“wifi 和移动网络位置”时,我的 onLocationChanged 之后再也不会接到电话,并且地图不会显示指示我所在位置的小蓝点。我必须重新启动手机才能让它再次工作。当我关闭和打开设置时,也会出现同样的行为。

我目前使用的是 google play 服务修订版 14。在 nexus 4 上测试。

此链接也存在类似问题,也依赖于 google play 服务。

Activity Recognition not work after "wifi & mobile network location" is turn off and turn on

【问题讨论】:

    标签: android location google-play-services


    【解决方案1】:
    try to use GPSProvider to get accurate location
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多