[Q] How to Develop for Glass - Glass Q&A

I am rather confused as to how to develop for Google Glass. So I am just going to do a brain dump as a sanity check. Please let me know if I have any misconceptions as I am rather confused.
There are currently 2 ways to develop for glass.
1)Mirror API
2)Pushing a APK onto the device
So the Mirror API is just a way to post to a special Glass Feed on a Glass owner's G+ account (or something to that sort) ? Can this be an actual app or is it just a way to communicate data to a person? Will the cards you push be differentiated from other Mirror API cards? Can apps this way handle gestures?
Pushing an APK: If I design an application that handles swipes, voice control and camera will it just work on Glass? Is there anything special that needs to be done to handle input/output on Glass? Are there any caveats to making an android apk and pushing it to a glass device?
Thanks,
-Sean

Related

[Q] Is there an App that just lets you see your phone display?

Is there (or technically, are there limitations that would prevent someone from creating), a Google Glass app that simply lets you view your phone display.
For example, maybe there's an app I use that's not a Google Glass app, for rxample - my app that lets me view my IP CAM live feed, or maybe a game that I want to keep an eye on passively so I can just pick up my phone when I'm ready to do my next move or whatever.
Does something like that exist, or can it? Or are there limitations in what developers can do that prevents this from ever working?

Glass control

So being very new to Glass (only got it on Wednesday 25/06) it is my understanding that the firmware after 16 disabled the 'normal' control via the touched? So versions after this are only capable of back and scroll?
Is there anyway of configuring a program like Remodriod or Tablet Remote so you can use the controls from your phone on Glass? Might sound silly as you could just say use your phone for what your doing but I was more thinking of using it to control the likes of YouTube so I log in and obtain my play lists, also it would stop the need to plug in for control via ADB, for which as a newbie to ADB I'm struggling with commands.
I was playing around with Remodriod and it asked me to set the input in Language and input, for which it didn't pop up like it did on my phone, I assume it is because there is no native option for this on Glass and therefore couldn't obtain the screen for it? Would I need to install the language and input options? Of so where can I get it from?
Has anyone else tried this idea?
Regards
Giles
GiGoVX said:
So being very new to Glass (only got it on Wednesday 25/06) it is my understanding that the firmware after 16 disabled the 'normal' control via the touched? So versions after this are only capable of back and scroll?
Is there anyway of configuring a program like Remodriod or Tablet Remote so you can use the controls from your phone on Glass? Might sound silly as you could just say use your phone for what your doing but I was more thinking of using it to control the likes of YouTube so I log in and obtain my play lists, also it would stop the need to plug in for control via ADB, for which as a newbie to ADB I'm struggling with commands.
I was playing around with Remodriod and it asked me to set the input in Language and input, for which it didn't pop up like it did on my phone, I assume it is because there is no native option for this on Glass and therefore couldn't obtain the screen for it? Would I need to install the language and input options? Of so where can I get it from?
Has anyone else tried this idea?
Regards
Giles
Click to expand...
Click to collapse
I'm glad you've done your research, it gets old telling people the same things over and over again.
As you mentioned, there was a time where you could easily control most apps with the touchpad, but that functionality has since been removed. Besides, there was no way to enter text without some sort of remote; many people managed to use bluetooth keyboards to achieve this, and the combination worked quite well.
In XE16, Google apparently decided that they wanted to make a clear distinction between Glass and Android controls. Apps that don't implement the Glass-specific gesture listeners can't be controlled at all. Even native Android popup windows don't allow you to choose which button you want to select (even if the Languages and Input popup did show up on Glass, you couldn't select the button).
So here we are today, either using the stripped-down, masked version of Android that Google gives us, or fumbling with ADB commands attempting to get that one video on YouTube to play. But there is hope yet. Google gives us rooted boot images, presumably hoping that we will show them something that they haven't done themselves. This tiny 5.5MB file opens up a ton of possibilities, but someone needs to be the middle man that brings these possibilities to the masses.
Thanks to the beauty of open source, we have a clear model of what needs to be done for Glass to work like so many people wish it would.
Port a working recovery image to flash zips to the Glass system folder (Done)
Modify Superuser to function properly given Glass's limited control set
Modify XposedInstaller in the same manner
I have a proof-of-concept Xposed module for Glass that lets me control the Netflix app with the touchpad. It's dirty, and it takes a lot of work to get working, but the concept is solid. Xposed is an incredibly powerful utility. The end goal is to create a Glass-oriented keyboard (think oldschool arcade video game high score screens - "Enter Your Initials").
While my goal is solid and my intentions are pure, I worry that there is a reason Google didn't do this to begin with.
TLDR; I'm working on it.
Many thanks for the response, so the short answer is no. That's a big shame and I hope I haven't just wasted 1k on a peice of eyewear that needs charging halfway thru the day!
I assume there is no way of going back to version 16?
I think it's strange how little development there is with Glass on XDA (I could be wrong but if you look at the likes of the smart watches there seems to be considerably more development) and how inactive this part of the forum seems? considering the idea and in my eyes (no pun intended) cool Glass is hence why I ordered mine as soon as I could here in the uk, so far I haven't met anyone with one, and I'm still getting some strange looks lol
The things that are possible with Glass are amazing. Really wish they had added a rear facing camera, eyes in the back of my head, no, but I can see behind me lol
I am eager to see your work and I will experiment on trying to build your xposed modules (never tried building an apk before) no harm in learning on what is probably the most expensive peice of tech I own lol
GiGoVX said:
Many thanks for the response, so the short answer is no. That's a big shame and I hope I haven't just wasted 1k on a peice of eyewear that needs charging halfway thru the day!
I assume there is no way of going back to version 16?
I think it's strange how little development there is with Glass on XDA (I could be wrong but if you look at the likes of the smart watches there seems to be considerably more development) and how inactive this part of the forum seems? considering the idea and in my eyes (no pun intended) cool Glass is hence why I ordered mine as soon as I could here in the uk, so far I haven't met anyone with one, and I'm still getting some strange looks lol
The things that are possible with Glass are amazing. Really wish they had added a rear facing camera, eyes in the back of my head, no, but I can see behind me lol
I am eager to see your work and I will experiment on trying to build your xposed modules (never tried building an apk before) no harm in learning on what is probably the most expensive peice of tech I own lol
Click to expand...
Click to collapse
I can't say I'm surprised by the lack of activity. Rooting Glass voids the warranty, and with the high price in addition to so many reported issues, not many people are willing to take that risk at the moment.
If you want to get touch controls back, then you'll need to flash down to XE12. See https://developers.google.com/glass/tools-downloads/system. Please be sure to read any warnings and notices. XE12 still doesn't have many options for keyboard input, but you'll have better luck than using XE16+.
Also, the strange looks won't be going away any time soon
jtxdriggers said:
I can't say I'm surprised by the lack of activity. Rooting Glass voids the warranty, and with the high price in addition to so many reported issues, not many people are willing to take that risk at the moment.
If you want to get touch controls back, then you'll need to flash down to XE12. See https://developers.google.com/glass/tools-downloads/system. Please be sure to read any warnings and notices. XE12 still doesn't have many options for keyboard input, but you'll have better luck than using XE16+.
Also, the strange looks won't be going away any time soon
Click to expand...
Click to collapse
The really frustrating thing with my Glass is that I'm still waiting for Google to get back to me about the 'split framed' version they should of sent me instead of the current standard version I have!
I requested a call from Google shortly after I received them asking the above question but they couldn't find my order, sure enough they have taken my money but can't find my order number, nor my Gmail address or the serial number for my Glass device! A little concerning that Google of all people couldn't find my info! I'm still waiting for an email back 3 days later! Longest Google search in history lol

[Q] Does anyone know of a gamepad/remote app?

Hi,
Been googleing for a while on this one, not found anything yet.
I'm looking for an app that can emulate a gamepad for my phone.
If all it does is emulate a single screen tap that would be fine.
The thinking is that I have a plastic Google Cardboard rig that doesn't have the magnet button thing. The idea being that the watch could replace this functionality.
If it could act as an analog stick/dpad that would be a huge bonus.
If nobody knows of an app for this, any input to deving one would be helpful. I don't currently have a Tizen dev suite set up but could get one going this weekend.
I've done some remote control stuff in java before but never on android. If anyone has experience in this your help would be appreciated.
I don't want to replicate something if it already exists.

Why do Glass App have to compiled from source?

Is there some weird law that google has that prevents Glass Apps from being complied to APK and uploaded here?? Everytime I ask for x app someone tells me to download the GDK and compile it from scratch. I have never compiled an app from scratch save for linux apps and even then I just followed the recipe to the letter.
if you build the app with the google development kit, it has support for navigation with the sidebar and glass voice commands. but it took a while to understand what I was doing, because the google support tutorial doesn't work and most other tutorials work with the android studio that was available at that time, which is very different now

Glass Development

I am trying to create my own application on google glass.Does anyone know how to make customize cards in google glass using android studio?Particularly how to design a card with two column text views.

Categories

Resources