2

I have an Android app I will be porting to Google Glass.

How do I programmatically grab the touchpad input (touching side of frame with fingers) in my Android/Java code?

halfer
  • 19,824
  • 17
  • 99
  • 186
JDS
  • 16,388
  • 47
  • 161
  • 224

1 Answers1

0

Am I wrong or the API offered by Google are limited to build web app as "services"?

As far as I understood you can just define a bunch of items/functions handled by HTTP request, so you probably want to define a menu-item that the user will trigger. At this point your server will receive the information with a menu id, so you can understand what to do.

By the way my experience is very vague, unfortunately I don't have Glass (I really wish).. : (

EDIT:

As you said seems possible to run native apps (http://www.androidpolice.com/2013/05/07/running-native-android-apps-on-google-glass-ingress-and-other-stuff-video/) but seems very painful to me, and quite "hacky". As the article says: "the Glass touchpad sends Tab and Shift+Tab, not up and down." so you have probably to intercept those inputs.

Btw, notice the battery in this mode: 6 minutes.......

Enrichman
  • 11,157
  • 11
  • 67
  • 101