google-glass

Renderscript support

谁都会走 提交于 2019-12-25 01:53:52
问题 Does the GDK support Renderscript? I wanted to run some image processing algorithms on Glass's Camera. However, the process crashes with a SIGSEGV fault. Here is the stack trace: 11-23 23:48:39.021: VERBOSE/RenderScript(1568): rsContextCreate dev=0x663468 11-23 23:48:39.021: VERBOSE/RenderScript(1568): 0x69a550 Launching thread(s), CPUs 2 11-23 23:48:39.060: VERBOSE/ScriptC(1568): Create script for resource = oilpaintingeffect 11-23 23:48:39.060: INFO/bcc(1568): LIBBCC build time: 2013/11/04

Google Glass Timeline item actions: What are the icon dimensions?

二次信任 提交于 2019-12-24 15:27:49
问题 What are the native image dimensions of the icons specified in 'iconUrl' for a custom timeline item action? This doesn't appear to be documented yet. 回答1: The menuItems's icon should be 50 x 50 pixels and white on transparent according to our documentation on UI Guidelines: Follow these guidelines when designing your menus: If you specify an icon, use a 50x50 pixel image. Limit display names to a few words if possible. Use the default icon and display name for built-in menu items unless you

Erroring with Bundle of HTML Pages

橙三吉。 提交于 2019-12-24 06:59:09
问题 I am trying to create a tree structure that is more than 3 levels (Bundle Cover -> Bundled Cards -> Menu Items) by using HTML pages. I have a bundle of cards with a cover that displays appropriately all using setText() . Then I changed one of the cards to setHtml() instead of setText() and used the HTML template from the playground to test. Then I added HTML pages to that card using an ArrayList<String> . Using the playground, I get the card below. When I access on Glass, I get "Stopped

Modify Settings.apk to work with Project Glass

南笙酒味 提交于 2019-12-24 05:03:02
问题 I am trying to build the Settings.apk to be used on Glass from the Hacking Glass session at Google I/O here: https://www.youtube.com/watch?feature=player_detailpage&v=OPethpwuYEk#t=500s He mentions that in order for settings apk to work one line in the manifest needs to be modified. This is the AOSP manifest as it is: http://pastebin.com/2yQ3QEgX (Added to pastebin due to length) Every time I run the settings app, it crashes out and this is the logcat output: I/PowerManagerService( 184): Auto

accessing google glass swipe pad in unity3d

谁说胖子不能爱 提交于 2019-12-24 04:22:08
问题 I am trying to access glass swipe pad in my unity3d project but it doesn't work. "KeyCode.Escape" works fine for swipe down. But how do I get swipe left right and tap working? I checked the "secondaryTouchEnabled" using the following in OnGUI and it returns "False", GUI.Label (new Rect (300, 100, 200, 60), ""+AndroidInput.secondaryTouchEnabled.ToString()); Shouldn't it return "True"? It would be great if someone could share an example code here. 回答1: The GUI.Label in your question should work

Mirror API latency when sending something to a timeline

微笑、不失礼 提交于 2019-12-24 00:57:17
问题 It seems that sometimes timeline items (just text) arrive instantly and other times they take forever... Is there a way to send one at precisely the right time? 回答1: You can send the notification at a precise time. timelineItem.getNotification() .setDeliveryTime(new DateTime(oneMinuteInFuture.getTime())); That's a java example, where oneMinuteInFuture is a Calendar object set to one minute after now. What happens when you do this is the card is inserted in the timeline immediately, but the

Check out Project from Version Control Fails

ε祈祈猫儿з 提交于 2019-12-23 21:40:07
问题 I am using Android Studio 1.0.2 on Mac to develop an app for Google Glass. I have been trying to start with one of the recommended projects that Google supplies on github, but I'm running into a problem. The instructions say to open Android Studio, select Check Out Project from Version Control , select Git in the dropdown menu, choose a location for the files, and then paste the url to the github. So I paste the url and when I click the test button to check the vcs repository url, it says the

How to activate device admin on google glasses?

旧巷老猫 提交于 2019-12-23 21:04:31
问题 I want to disable camera on my google glasses. Is there any way to activate device admin and call DevicePolicyManager.setCameraDisabled(admin, disabled) method. 回答1: Android stack on Google glass doesn't support admin feature. 来源: https://stackoverflow.com/questions/27740677/how-to-activate-device-admin-on-google-glasses

Can you allow a user to REPLY to a card and not have a card appear with their response text in the timeline?

隐身守侯 提交于 2019-12-23 09:39:31
问题 When I have a bundle (perhaps this also occurs with a single timeline card) with a REPLY action and the user executes that action, with lets say "peanut butter and jelly sandwich", a new timeline card appears with white text on a black background on Glass with the text "peanut butter and jelly sandwich". When looking at the playground that same card appears with the user's avatar on the left (like the Abe Lincoln template example), and the text on the right. Lets call this new card the

Java Google glass starter project mapping in AWS EC2

会有一股神秘感。 提交于 2019-12-23 05:40:11
问题 I am stuck with the Google Glass Java Starter Project. I have succesfully downloaded it and ran it locally using mvn jetty:run. It runs beautifully on localhost in my machine. I deployed it to Google App Engine sucessfully, but I wanted to add more functionality to it, so I decided to use the Java Quartz library to send scheduled notifications to the glassware. Unfortunately, the quartz library works spawning new threads and GAE doesn't allow me to do so. I decided to run it in a separate