0

I want to transfer data bi-directionally over USB between an Android tablet and a Google Glass. Is this possible?, If YES then please provide me some example.

Thanks.

Gurmail
  • 51
  • 3

2 Answers2

1

You may use the Android Debug Bridge (ADB) for many things. Consider using that.

If you are asking about some sort of "normal" process to use with a Glass GDK app to use the USB cable then do NOT do this. You should only consider using USB for development and debugging.

ErstwhileIII
  • 4,829
  • 2
  • 23
  • 37
0

There are ways to do this for debugging purposes. But this is for debugging purposes only (as Erstwhilelll said) - it is not something that you could use for an actual app in practice, especially connected to a tablet.

So for what you're asking, the answer is no.

There are other methods of communicating between the tablet and the Glass. The easiest of the possibilities is sending data over bluetooth. For this, see this StackOverflow response. You can find the code for Bluetooth data transfer here: https://github.com/NathanielWaggoner/GoogleGlassBlutooth

Community
  • 1
  • 1
Alex K
  • 8,269
  • 9
  • 39
  • 57
  • actually I successfully implemented communication through BT but i'm not able to route audio from TAB to glass over BT. Thats why I thing if USB can solve my problem. http://stackoverflow.com/questions/20359572/is-it-possible-to-use-the-micro-usb-on-google-glass-to-connect-to-another-type-o – Gurmail Dec 05 '14 at 04:23
  • @Gurmail very interesting. I do maintain that bluetooth is a better way to do this sort of connection, unless you'll be passing large amounts of data and speed is an issue.... – Alex K Dec 05 '14 at 04:37
  • Yes speed is very big issue in my case. Because when i'm trying to pass byte data (converted audio stream) over BT then lot of data lost. any suggestion "how to pass stream audio to glass over BT or USB?" – Gurmail Dec 05 '14 at 04:55