简体   繁体   English

如何手动将GPS数据发送到Android手机上的“位置管理器”(已root)

[英]How can I manually send GPS data to Location Manager on my android phone(rooted)

My question is, How will actually LocationManager get data from GPS device on mobile? 我的问题是,LocationManager实际如何从移动设备上的GPS设备获取数据? Can I manually give LocationManager data which i intended to give?? 我可以手动提供我打算提供的LocationManager数据吗? For my testing I require such thing. 对于我的测试,我需要这样的东西。 Or Can anyone provide me details how or through which File will GPS device provide data to LocationManager. 或任何人都可以向我提供有关GPS设备如何或通过哪个文件将数据提供给LocationManager的详细信息。 Or By what means will the Location API communicate with GPS device/ GPS driver. 或Location API将通过什么方式与GPS设备/ GPS驱动程序通信。

I require some or the other information to provide direct GPS data to LocationManager inturn to the APPs using locationManager(Directly on mobile not by emulators). 我需要一些或其他信息,以便使用locationManager(直接在移动设备上而不是通过模拟器)将GPS数据直接提供给LocationManager,然后再将其提供给APP。

Any help or suggestions are Appreciated. 任何帮助或建议表示赞赏。

Reagrds Poorna Chander T Reagrds Poorna Chander T

Here is a nice app for testing apps that require GPS: http://forum.xda-developers.com/showthread.php?t=1577485 这是一个测试需要GPS的应用程序的不错的应用程序: http : //forum.xda-developers.com/showthread.php?t=1577485

Also you have to select "Allow mock locations" in developer options on your phone. 另外,您还必须在手机的开发人员选项中选择“允许模拟位置”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在有根 Android 7.1 电话中编辑 GPS 位置 - How to Edit GPS Location in a Rooted Android 7.1 Phone 如何使用android java应用访问我已扎根的android手机的\\ data \\ data文件夹? - How do I access my rooted android phone's \data\data folder using android java app? 以编程方式在植根电话上启用GPS和网络位置? - Enable GPS and network location programmatically on rooted phone? 如果我在Android上检测到植根电话,如何禁用Activesync? - How can I disable Activesync if I detect a rooted phone on Android? 如何使用 GPS 在 Android 中获取我的当前位置? - How can I get my current location in Android using GPS? 如何在有 root 权限的手机上使用 android.permission.SHUTDOWN? - How can I use android.permission.SHUTDOWN on a rooted phone? 如何在已扎根的android手机上以编程方式停止系统服务? - How can I stop a system service programmatically on a rooted android phone? 如何将文件从根目录复制到无根android手机的另一个目录中? - How can i copy a file from a rooted directory to another directory in a non rooted android phone prorammatically? 如何在我的Android应用程序中获取一个手机GPS位置? - how to get one mobile phone gps location in my android App? 我如何检查用户是否在Android手机上真正启用了GPS位置 - How can i check user really enabled the gps location on his phone in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM