google-glass

How to get action of System Dialong Box programatically

删除回忆录丶 提交于 2019-12-12 04:33:41
问题 I am working on a project where i have to install an app programmatically on google-glass , the intent leads to a System Dialog asking for users permission. Unfortunately the touch pad of the smart glass can not switch between the options. In order to pass them to glass touchpad, or programtically perform their click I need a way to catch the actions of the System Dialog. 来源: https://stackoverflow.com/questions/43982298/how-to-get-action-of-system-dialong-box-programatically

popup notifications for google glass

↘锁芯ラ 提交于 2019-12-12 04:30:47
问题 How do i make custom popup notifications for google glass the way it is shown in the google glass commercial. I want my service to run on the background and send timely popups only when necessary. Link for reference http://www.mobile88.com.sg/news/read.asp?file=/2012/5/11/20120511113022&phone=Google_Glass_augmented_reality__futuristic_concept Is there a possible way to do so or should I just use only Toast notifications or invoke activities through intents. 回答1: The "popup" design from that

Glass GDK : Contextual voice command with more than 5 items

冷暖自知 提交于 2019-12-12 04:08:59
问题 I am using Contextual voice command, it works great with 5 items. But when I put more than 5 items, I can still use it by saying the words, but the UI doesn't show them. For example if I have : Next Back Up Down Cancel Exit I can say Exit and it work, but I can't see it. Is there a way to custom the view or make it scrollable ? 回答1: Generally on the voice commands if you look up and down by moving your head the list will move. I'm not certain if the contextual voice commands work this way,

Retrieve the Auth Token in GDK

无人久伴 提交于 2019-12-12 02:49:55
问题 Retrieve the Auth Token in GDK After Inserting the Mirror Account Successfully Now getting the Auth Token in APK side (GDK side). Mainfest.xml <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" /> Activity Code : AccountManager accountManager = AccountManager.get(this); // Use your Glassware's account type. Account[] accounts = accountManager.getAccountsByType(ACCOUNT_TYPE);//Same Account_type which was passed

Refer to Google Glass drive via batch file

萝らか妹 提交于 2019-12-12 02:10:06
问题 When I connect the google glass to my PC, it opens up a new drive named "Glass". How can I refer to this drive in a batch file/script from any computer that I connect my glass to (independently), suppose no one would deliberately rename the drive? I would like this bat script to copy all of the jpg and mp4 files from the Glass to some location in my PC. 来源: https://stackoverflow.com/questions/26154571/refer-to-google-glass-drive-via-batch-file

Mirror API custom menu and custom properties

五迷三道 提交于 2019-12-12 01:40:05
问题 In my app I have added custom menu items to user timeline items. I am creating the custom menus in iteration. Is there any way to append the custom properties to the custom menu item? , so that I can know which menu item is clicked. ere is my code for custom menu, // And custom actions List<MenuValue> menuValues = new ArrayList<MenuValue>(); menuValues.add(new MenuValue().setIconUrl(WebUtil.buildUrl(req, "/static/images/drill.png")).setDisplayName("Found")); menuItemList.add(new MenuItem()

How to pull attachments from Google Glass item?

帅比萌擦擦* 提交于 2019-12-11 22:16:48
问题 I created NodeJS server that communicate with Google Glass, I want to know how to pull attachment from item, below you can see the item with attachments: Note: in my project I already have: *Send item item to glass(contact, card, location, etc..) *Subscription to timeline collection *Contact with callback to let Glass user share content - for more info Visit How to add another option to the share functionality of Google Glass? Do I need to use the selfLink to pull the attachment? if yes then

Subscriptions Not Receiving Timeline Notifications

混江龙づ霸主 提交于 2019-12-11 21:59:45
问题 Steps to Reproduce (unexpected behavior in bold ): I successfully create an app contact via the Python Starter App I successfully subscribe to timeline notifications I take a photo with Glass I share that photo with my app contact The photo is duplicated on the timeline The app's callbackUrl is never pinged (yet POSTing manually via curl works fine) Attempting to delete the duplicated photo card makes the Glass OS glitch out until reboot 回答1: Posting some sample code with actual URLs may help

GDK : How to show status similar to 'Recording“ and 'Complete”

99封情书 提交于 2019-12-11 18:22:04
问题 I'm developing a GDK app where I need to provide an user experience to display status text similar to video recording status that Glass provides ( displaying "Recording" status then displaying progress indicator and finally showing 'Complete' text ). Appreciate your input. 回答1: Right now, you'll need to write your own UI logic to do this (perhaps by using a Dialog with a custom layout that has the appropriate centered label and icon, with a progress bar at the bottom, and changing the label

Google Glass updated to KitKat, but new methods aren't showing up in Eclipse?

ⅰ亾dé卋堺 提交于 2019-12-11 14:35:59
问题 My Google Glass updated itself to KitKat today, and I thought I have gone through and updated Eclipse successfully as well, but Eclipse is throwing errors on the new methods introduced into the GDK by the update. For instance, part of the update was setText() expects a java.lang.CharSequence So, I changed my code from card.setText(some_String); to card.setText(some_CharSequence); however, when I do this, eclipse throws an error, stating that The method setText(String) in the type Card is not