地理费克斯不是在Android SDK中工作2.2 [英] Geo Fix not working in Android SDK 2.2

查看:139
本文介绍了地理费克斯不是在Android SDK中工作2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试一个Android应用程序。
我需要发送模拟位置进行测试。我已经注册了requestlocation更新(..)方法(如下图)

I am trying to test an Android application. I need to send mock location to test this. I have registered for requestlocation updates(..)method (as follows)

locationManager.requestLocationUpdates(bestProvider,
  20000,0,);

locationManager.requestLocationUpdates(bestProvider, 20000, 0, this);

试图通过发送DDMS的Eclipse标签以及远程登录,ING从命令提示符模拟地点。 Telnet命令如下:

Tried sending mock locations through Eclipse DDMS tab as well as telnet-ing from command prompt. telnet commands as follows

远程登录本地主机5554结果
   地理修复1

telnet localhost 5554
geo fix 1 1

应用程序的罚款(即接收到位置改变的事件),如果我使用运行模拟器AVD使用的 1.6〜2.1 。但是,不工作对于 AVD模拟器2.2 。我使用的SDK平台的Andr​​oid 2.2版本2。

The application works fine (i.e. receives the location changed event) if I run using AVD Emulator using 1.6 to 2.1. However, it is not working for AVD Emulator 2.2. I am using SDK platform Android 2.2 revision 2.

有谁碰到过类似的问题?你是怎么解决这个问题?

Does anyone come across similar issue? How did you resolve this?

PS。额外的信息。我选择允许模拟位置在所有的模拟器(1.6〜2.2)。结果
此外,以下行采用的是Android清单添加

PS. Extra Information. I have selected 'Allow Mock Locations' in all emulators (1.6 to 2.2).
Also, the following line is added in Android Manifest

使用许可权的android:NAME =android.permission.ACCESS_MOCK_LOCATION

uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"

问题仍然存在。请帮助

推荐答案

请参阅以下错误报告的解决问题的方法:

See the following bug report for a solution to your problem:

HTTP://$c$c.google。 COM / p /安卓/问题/细节?ID = 4036

这篇关于地理费克斯不是在Android SDK中工作2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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