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?
Thanks.
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.......
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.