google-glass

How do I send bundled cards all at the same time?

不羁的心 提交于 2019-12-05 05:10:18
I've set up a Java application where I'm creating a bundle of 4 cards. The problem is that all the cards do not come in at once. Some times just one shows up, then a few seconds or minute later the other cards show up. How do I get them to all show up on the headset at the same time? edit: I tried HTML paging and that didn't work and now I think I'm more confused. So in my senario here I want to send a bunch of landmarks to the user that they can navigate to. I want all the landmarks in a bundle, I want a cover to the bundle that isn't an option in the bundle saying "here are your landmarks",

How to send your .apk Glass Application for your client to see?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 02:15:53
I'm jumping head first into Android for Google Glass development and I'd like to know how I can let my client see the .apk that I'm working on. My client owns a pair of Google Glass too but lives far away. So far, the only way I have been able to upload to Glass is using ADT, Run As -> Android Application when my Glass is connected by USB. How can I put the Glassware (apk) up online so he can "load it up" into his glass remotely? Or deploy it to his glass? I read Send the .apk file to client for review but it's more related to Android devices, whereas my client uses Google Glass and doesn't

How do I create a dark Google Maps image for Google Glass?

半腔热情 提交于 2019-12-05 01:58:55
问题 I need to create a dark/inverted map image for use on Google Glass, since the standard Google static maps image is too bright when displayed on the screen. How can I customize the map theme to look good on Glass? 回答1: The Google Static Maps API provides a number of customization options to change the colors of the map features. Here's an example of an activity that loads a dark/inverted static map image and displays it in a full-screen ImageView on Glass. The description of the query

Bluetooth Pairing Google Glass

爱⌒轻易说出口 提交于 2019-12-04 19:18:49
Using Google Glass, I am able to discover Bluetooth devices and see their address and information. However, I cannot get the Glass to pair (bond) with them. Update Following the instructions on this page now I'm trying to get the bonding, but for some reason the BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(action) is never happening. private void pairDevice(BluetoothDevice Ddevice) { Log.d("MY_LOG", "Try to pair " + Ddevice.getName()); try{ Method m = Ddevice.getClass().getMethod("createBond", (Class[]) null); m.invoke(Ddevice, (Object[]) null); Log.d("MY_LOG", "Pairing " + Ddevice.getName

Glassware uninstalled after google glass reboot

99封情书 提交于 2019-12-04 19:15:38
I have created a test build of a GDK Glass app that I want to deliver to a few test users. However the app disappears after a reboot. Logcat shows this: 08-19 18:18:18.256: I/GlasswareSyncAdapter(978): Uninstalling Glassware ID #6DBADA7634397F00 (com.example.demo). A look at the issue tracker explains that this is caused due to the fact that the MyGlass app didn't install this app and that the app thus isn't linked to the user's account. Are there any workarounds? With a submission process of over a month how can we get our app tested properly? The submission process should be less than a

Google Glass upload files using http-client

空扰寡人 提交于 2019-12-04 17:08:48
I am trying to upload an image file using http-client from my Google Glass to my server but it always gets stuck at the httpclient.execute() method. I am not sure how should I approach uploading files from my Glass. This is what I have so far: httpClient = HttpUtils.getNewHttpsClient(); postRequest = new HttpPost(strURL); final File file= new File("mnt/sdcard/DCIM/Camera/12232.jpg"); s = new StringBuilder(); try { if(file.exists()) { final FileBody bin = new FileBody(file); final MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); reqEntity.addPart("uid", new

Deadline exceeded while posting multiple cards to timelines with a video attached

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 15:45:59
问题 first of all i'm using python over gae and i'm trying to push a card with a video attachment to all the users that visited my glassware. This is the code: #posting video media_link = util.get_full_url(self, '/static/video/man_on_the_moon.mp4') resp = urlfetch.fetch(media_link, deadline=2000) media_video = MediaIoBaseUpload(io.BytesIO(resp.content), mimetype='video/vnd.google-glass.stream-url', resumable=True) users = Credentials.all() for user in users: creds = StorageByKeyName(Credentials,

How I get menu click event

送分小仙女□ 提交于 2019-12-04 14:14:37
问题 I created a custom menu using mirror api . menu created method on MainServlet public List<MenuItem> makeDealMenu(String appBaseUrl) { String dealMenuIconUrl = appBaseUrl + "static/images/deal_50.png"; MenuValue dealMenuValue = new MenuValue(); dealMenuValue.setDisplayName("DEAL"); dealMenuValue.setIconUrl(dealMenuIconUrl); List<MenuValue> dealMenuValueList = new ArrayList<MenuValue>(); dealMenuValueList.add(dealMenuValue); MenuItem dealMenuItem = new MenuItem(); dealMenuItem.setAction("CUSTOM

Google Glass isn't showing up as a device on eclipse under DDMS.

寵の児 提交于 2019-12-04 12:58:22
I edited the .inf file in my C:adt-bundle-windows-x86_64-20130917\sdk\extras\google\usb_driver directory. I installed the drivers for Windows 7 through that same directory. My Google Glass is in debug mode. The device is plugged in, yet it isn't showing up in my DDMS Devices list? Am I missing something? Avalanchis I was able to install the driver by following the steps in matthew06854 's post here . Although the driver seemed to install correctly, I could not see the device under DDMS in Eclipse. I was finally able to get Glass to show up under Eclipse DDMS on Windows 8.1. With Glass

Google Mirror API throwing BadStatusLine exception (Python)

你说的曾经没有我的故事 提交于 2019-12-04 12:31:34
When using the Mirror API, I randomly get a "BadStatusLine" exception from several API calls, including timeline().insert and timeline.list . From trolling around SO for simliar problems in python, I suspect this is some kind of malformed response from the server. It seems to happen randomly and possibly after a period of not using the API. Here's a sample stack trace: Traceback (most recent call last): File "service.py", line 61, in receive_message self.process_user_chat(msg) File "service.py", line 304, in process_user_chat self.upsert_timeline_item(sourceItemId, body) File "service.py",