【问题标题】:How to send the location coordinates from Emulator Control to HTC Wildfire real device如何将位置坐标从 Emulator Control 发送到 HTC Wildfire 真机
【发布时间】:2012-04-08 18:17:32
【问题描述】:

我有一个基于位置的应用程序,它使用从 DDMS 的模拟器控制接收到的地理坐标显示位置。我已经在 HTC Wildfire 手机中安装了我的应用程序,但我无法从 Emulator Control 发送位置坐标,因为它是“灰色的”(即,用户无法输入 Emulator Control 的纬度和经度)。我已获得“ INTERNET","ACCESS_FINE_LOCATION","ACCESS_COARSE_LOCATION","ACCESS_MOCK_LOCATION" 权限在 Android manifest.xml 中正确。但是这个问题仍然出现。请帮助我如何从 Emulator Control 将地理坐标发送到我的 HTC 手机。

【问题讨论】:

  • 为什么要将地理坐标从模拟器发送到手机?

标签: android android-emulator geolocation


【解决方案1】:

要在手机上运行的应用程序上使用 DDMS,您必须在 AndroidManifest.xml 中设置应用程序标签的 debuggable 属性,并且您必须启动您的应用程序。

<application android:icon="@drawable/ic_launcher"
             android:label="@string/app_name"
             android:debuggable="true">

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-21
    • 1970-01-01
    • 2021-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多