Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 android 模拟器上运行带有位置的自动化测试。 我可以通过 Telnet 设置坐标,但这意味着在运行我的 junit 测试之前启动控制台并手动配置模拟器。
是否有可能使用 KML 文件或类似文件预配置模拟器以确保始终有可用的坐标?
您是否已经在测试中查看过使用LocationManager.setTestProviderLocation(String provider, Location loc)?