google-gdk

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

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

Get Google Glass Name or Email

筅森魡賤 提交于 2019-12-23 04:47:44
问题 Is there a way to get the current glass username/email or some identification (maybe Mac address) of a current glass user in a GDK application? For example they are signed into gmail. I just want to know their email... For registration or to help create a unique account, Is that possible? 回答1: Based on what you are trying to do, You don't need their email to create a unique ID for account. You can use Mac Address . Code to get the Mac Address : WifiManager wifiManager = (WifiManager)

Glassware with listed command is not visible in menu after upgrade to XE16

风格不统一 提交于 2019-12-23 02:20:34
问题 My app is using the "play a game" command to be started by voice command and be visible in the Google Glass menu. After upgrading to XE16 it disappeared from the menu and I could not find any upgrade notes for developers to make it work. What changes needs to be made for the voice start command to work on the upgraded glass version ? 回答1: After upgrade to XE16 the following changes must be made for voice activation and enlisting in menu. Listed voice commands: Listed commands are commands

how to scroll live cards in aglass activity

杀马特。学长 韩版系。学妹 提交于 2019-12-22 18:31:42
问题 I'm writing a glass app. In one activity I want to scroll between few cards (which were popups in my android app). 1) I thought to use cardsScrollView. problem: Is it possible to set customView to a card object? 2) I thought to use LiveCard problems: Is it possible to publish them inside my app and not in the timeline? Is there an equivalent LiveCardsScrollView? Any other idea how to implement this? 回答1: From Google's sample code at https://developers.google.com/glass/develop/gdk/ui/theme

OpenGL in live cards?

北城余情 提交于 2019-12-22 12:34:17
问题 I've been playing with the glass GDK and glass 'native' (Java) development in general. I've got a open GL app that works well enough on Glass (using standard android conventions) and I'm looking to port it to the GDK to take advantage of voice triggers and what not. While I can certainly use it easily enough as an Immersion (I think anyway) what I'd like to do is use it as a Live Card. I'm just not sure how possible or practical this is. The documentation seems to imply that with a high

Google Glass GDK Authentication using PHP

末鹿安然 提交于 2019-12-22 09:07:46
问题 I am trying to follow this link to authenticate user in GDK: https://developers.google.com/glass/develop/gdk/authentication It gives example in Java, but my webpage uses PHP. I know I have to use https://github.com/google/google-api-php-client/blob/master/src/Google/Service/Mirror.php I am stuck with service auth page making call to mirror.accounts.insert. Not sure how to implement the service auth page. Any example would be great help. [SOLVED] Working example is here: http://goo.gl/DVggO6

How to display static map on card using GDK?

北城余情 提交于 2019-12-21 05:35:15
问题 In Mirror API we can use something like: <img src="glass://map?w=240&h=360&marker=0;42.369590, -71.107132&marker=1;42.36254,-71.08726&polyline=;42.36254, -71.08726,42.36297,-71.09364,42.36579,-71.09208,42.3697, -71.102,42.37105,-71.10104,42.37067,-71.1001,42.36561, -71.10406,42.36838,-71.10878,42.36968,-71.10703" height="360" width="240"> And it renders nice Glass-optimized map on card. How to do the same thing in Activity using GDK? 回答1: I ended up writing this method which displays user's

PreferenceFragment cannot scroll up/down on XE16 (worked fine on XE12)

半腔热情 提交于 2019-12-21 05:29:09
问题 I have a few user preferences, mostly simple check-boxes, in my Glass GDK app. I could not find a glass specific preference paradigm, so I used PreferenceFragment and it worked fine on XE12. FYI: When I implemented it, it initially looked bad, but I improved that by using the following style in the AndroidManifest for my SettingsActivity: <style name="Theme.Preferences" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen" /> I had no option to not update to XE16 (other than turning off

How to get last location on Glass reliably?

醉酒当歌 提交于 2019-12-21 04:45:12
问题 Method getLastLocation() from LocationManager often return null and it's quite tricky to select best provider. The documentation says: Warning: Do not use the LocationManager.getBestProvider() method or the constants GPS_PROVIDER or NETWORK_PROVIDER to listen for location updates. Glass uses a dynamic set of providers and listening only to a single provider may cause your application to miss location updates. How to get best last location? 回答1: Because Glass uses dynamic set of providers, you