[英]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.