简体   繁体   English

通过蓝牙使用另一个GPS Android(Android到Android设备)

[英]Using another GPS Android over Bluetooth (Android to Android device)

In this case I have Android device A and Android device B. In my project I want to make my apps so that they can change the type of GPS Android A to GPS Android B over Bluetooth. 在这种情况下,我有Android设备A和Android设备B。在我的项目中,我想制作我的应用程序,以便它们可以通过蓝牙将GPS Android A的类型更改为GPS AndroidB。

So when I disable the GPS or Internet, or both of them in Android A, Bluetooth A will connect to another device (Android B) and use Android device B's GPS over Bluetooth in Android device A. 因此,当我在Android A中禁用GPS或Internet或两者都禁用时,蓝牙A将连接到另一设备(Android B),并在Android设备A中通过蓝牙使用Android设备B的GPS。

Is this possible to do? 这可能吗? If yes, how? 如果是,怎么办?

This is a very general question! 这是一个非常普遍的问题! so I have to give you a general answer... 所以我必须给你一个一般的答案...

It is possible, you have to develop a client/server application which can communicate and send data over BlueTooth. 您可能必须开发一个客户端/服务器应用程序,该应用程序可以通过蓝牙进行通信并发送数据。

The server application( Device B ) must be able to get GPS data and share it over BlueTooth and client application( Device A ) must be able to connect over BlueTooth and received GPS data from device B and use it on device A. 服务器应用程序( 设备B )必须能够获取GPS数据并通过蓝牙共享它,客户端应用程序( 设备A )必须能够通过蓝牙进行连接并从设备B接收GPS数据并在设备A上使用。

The point is it would never be like the hardware data that is being used with all applications on your device and you can use this data on your client application. 关键是它永远不会像设备上所有应用程序所使用的硬件数据一样,您可以在客户端应用程序上使用这些数据。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM