I was wondering if is possible to use GDK to develop a app capable of creating vignettes on Glass, like this.
Is it possible?
Interesting question. I imagine your app would need to do 3 steps:
Take a screenshot
Take a picture
Put them together
Steps 2 and 3 are pretty easy and shouldn't be a problem on Glass.
When it comes to step 1, you can take a screenshot from your app in Android by creating a bitmap from a view, which should work on Glass as well. But I don't think you can screenshot other apps or the timeline, so I don't think it is doable in general.
Related
Just getting into this ionic framework. build an simple app with just a tab and menu, deploy to android phone. it seems like it takes a good 3 seconds to load. the black screen last for 3 seconds then the app shows. I also try the ionicview app from ionic. similar experience. my question is, is it just something I missed or it's just one of the draw back of this kind of hybrid app? it make sense that the webview need to load and parse the js and html then render the UI.
Crosswalk provides a bundled Chrome Webview with the app, resulting in better performance and predictability. It helps a lot on older Androids and also speeds up the newer phones.
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.
Is it possible to have Glass do a POST on it's current coordinate to the server while running other apps, say, Google Hangout or take a picture?
Is there any example or APIs I can leverage?
If you are using Goggle Glass GDK, you can use an AsyncTask to to do work. If you are using Mirror-API, then that is a separate app, and it can work simultaneously (see GlassWare Fieldtrip).
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
I just started using the Mirror API with a PHP web server. Is there anyway to integrate a voice command with my app that when said, Glass will take a picture and automatically share the picture with my server?
From what I read so far, it doesn't seem possible to access the camera with anything other than the default "Take picture" command. I also don't see a way to have Glass commit two actions (in this case take a picture and then share it) with one voice command. Is there any way to do the above with the Mirror API?
This isn't possible with the current features provided by the Mirror API. If this is a feature you're interested in using, file it in the official issue tracker.
However, you can implement this functionality with the GDK.