Exchange data between google-glass and a android device

ε祈祈猫儿з 提交于 2020-01-03 21:50:16

问题


The scenario:

I have a android app running my in cellphone. I´m the owner of this app. I have a google-glass synced with this cellphone. I´m developing a my app for google-glass using the new GDK launch a few weeks ago.

I want to send a data from glass to cellphone and then receive a answer. No internet connection is necessary, so i´m planning to use Bluetooth to this data communication.

I can create a Bluetooth socket connection, however this will obligate me to manage it. There is no android high level abstraction that permit me to call a service or a activity directly on the cellphone?


回答1:


AFAIK, there's no direct pipe between them, the glass is basically a phone with a different set of inputs and outputs. You can create and manage the connection, and it's yours.




回答2:


AFAIK, there is no other way to do this, as Travis said there's no direct pipeline between them, seems to be true. You can use use BLUETOOTH Chat Application included in the Android SDK.

  1. Just change the input method to voice input in the application

  2. Install that Application in both the devices

  3. Try It

change the code accordingly to send files too.



来源:https://stackoverflow.com/questions/20609745/exchange-data-between-google-glass-and-a-android-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!