简体   繁体   中英

Exchange data between google-glass and a android device

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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