Glass to pass intent through glass app - google-glass

I have a google glass device and I know I can hack it to run native android apps. I was hoping there was a way to just pass "INTENT"s from glass to the glass app on a paired phone and have that glass app pass along those intents to another app on the phone. In this way we can just have glass pass intents from card/timeline responses/actions and glass app be a passthrough.
Is anything like this possible?

Nothing like this is supported right now. Of course it is possible. You can make a feature request here: https://code.google.com/p/google-glass-api/issues/entry?labels=Type-Enhancement
Good idea!

Related

Install google glass app to android mobile

I'm developing app for google glass. I don't have glass, so i used to install file to android device. I referred this document Installing Google Glass in an Android Phone . But when i install and open my own custom voice trigger app, it won't open. I didn't see my app in list of voice command.
There are a few things to keep in mind.
First of all, those instructions were for a much older release of the Glass system. There have been many changes in how to launch a GDK app since then, and the most recent have been outlined in Why is my voice command missing from the ok glass menu in XE16?
Second, it is really difficult to appreciate the differences between Glass and more traditional Android devices. While you can probably get a basic understanding of development for Glass, you may have trouble understanding the UX differences. It is like trying to write for a mobile phone only by using a desktop computer.

Hybrid app in Google Glass

Is it possible to build a single app that can work as native(GDK) and also insert cards into my timeline with Mirror API. Or i have to build separate apps for GDK and Mirror API.
I am aware that we can invoke a GDK app from a card inserted through Mirror API. But these are
in essence two different apps interacting.
So is it possible that i can do the whole authorization through GDK app?
It is certainly feasible to have a GDK-based app on Glass call the Mirror API to insert a card. Calling the timeline.insert endpoint is not a big deal. You will have bigger issues if you're trying to handle callbacks since you'll need a stable IP address, but if all you want to do is insert cards with a URI to use as an intent trigger, that part is not an issue.
The issue you face, as you noted, is to do the authorization through Glass. This part is still immature in the GDK, and although there are some workarounds, there is nothing that Google provides yet that can help with this. Auth support is quite frequently requested, so expect something to address this as the GDK matures.

How to start Hangouts from Glassware

I want to start Hangouts from my Glassware so that the user can make video call to any of his contacts in the Glass. I tried the giving the package name of the hangout app in an intent , but it did not work. If anybody has tried this before ,please do share.
Thanks
Starting a hangout from an intent isn't supported by the GDK. A feature request was filed in our issue tracker here; feel free to follow it so that you can be updated if anything changes!
I want to start Hangouts from my Glassware so that team can see what is out put is coming.
I did lots of RnD, then I come up with below solution
steps -
install myglass into mobile
install your apps in google glass
paired with glass with your mobile thr Bluetooth
start myglass apps and sync with glass
done
now start you application over the google glass, it will show at mobile in same way and behavior.
let me know if it work

Sample apps of Google Glass

I want to develop a Google Glass app. I am confused on how to implement the UI. Can anyone please suggest me some tutorials on developing Google Glass.
Also i dont have Google Glass device. I have heard the emulator is not available for Google Glass. Is there any way to test the apps without having the device.
Thanks.
There's no publicly available emulator, so you need real device to test your app. Also, all things are documented here: https://developers.google.com/glass/develop/gdk/
As of now, you can't and hope Google will publish the simulator soon. Meanwhile, you could check some of the presentation, and open source codes.
http://www.slideshare.net/getdinesh/google-glass-an-intro-v-1
https://developers.google.com/glass/develop/overview
https://github.com/harrywye/gdkdemo
https://github.com/Acarin/GDGBaltimore

What is the difference between Glass Mirror API and Google GDK?

What is the difference between Glass Mirror API and Google GDK?
Google has announced the GDK here: https://developers.google.com/glass/gdk
but they haven't exposed any new features specific to Glass yet. How do we actually use the Google GDK?
Looking at the examples listed on the above link, we can create APKs, load APKs onto Glass and launch them using adb shell but is there a complete app or example anywhere?
The difference between the Mirror API and the forthcoming GDK boils down to where the application being written will run.
The Mirror API specifies how a web-based application will communicate with Google's servers to send updates to a user's Glass and how it will receive notifications when the user takes an action (such as a share, or a location change) that is directed at the Glassware.
The GDK is intended for applications that will run on Glass itself and have more low-level access to the sensors and to the underlying Android environment that Glass is built on top of. Google has not released the GDK yet - that page is where it will be released, and provides some early "getting started" concepts for developers who are interested in building native apps that run on Glass.
GDK has not been launched yet, so you cannot actually use it right now.
GDK will allow you to work directly on the Glass device using your Android development skills whereas Mirror API is a cloud/web-based API for interacting with a user's timeline only. See Prisoner's answer for more detail on this.
Because GDK has not been released yet, "complete" apps and examples do not exist. There are three samples (Compass, Level, and Stopwatch) listed on the link that you posted. The page says that these samples will eventually be updated into a "full Glass experience" when GDK is launched.
When we launch the GDK, we'll also update these samples to show the migration path from a traditional Android app to a full Glass experience. Make sure to check regularly for updates
Glass Mirror API is for developing the Glassware(Pushing Webcards from server to Glass).
Google GDK(Glass Development KIT) is similar to current Android SDK, but they will have some special tool that will help develop Android Apps for google glass. Even now without GDK, developers are developing apps using Android SDK.
GDK will allow you to run apks on GLASS along with the GlassHome. GlassHome is the main display that you see within GLASS. If you install an APK without the GDK, the only way to get to it is using something like Launcher2.apk. With the GDK, and this is an assumption, your apk will be represented as a card within GlassHome.