google-glass

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

亡梦爱人 提交于 2020-01-13 08:38:08
问题 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

Glassware uninstalled after google glass reboot

僤鯓⒐⒋嵵緔 提交于 2020-01-13 06:44:11
问题 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

how to connect Android phone with Google Glass for data sharing

天大地大妈咪最大 提交于 2020-01-12 08:35:48
问题 I've made my app running on the Google Glass, but it's a little slow in real time. Is there a way to connect my Android phone with the Glass for data communication, so that the phone can take care of the calculation, and the Glass only show the result? The Glass can tether with Android phone by bluetooth, so it should be able to transmit data via it? Don't know if it's possible to run my app on cloud server and send the result back to my Glass, but guessing that would be slow as well. Any

ASP.NET MVC5 Google APIs GoogleWebAuthorizationBroker.AuthorizeAsync works locally but not deployed to IIS

白昼怎懂夜的黑 提交于 2020-01-11 10:18:34
问题 I'm having an odd problem trying to get an MVC5 app to work with the Google Mirror API when it's deployed (or any google API for that matter). This is the code I am struggling to get working: UserCredential credentials = GoogleWebAuthorizationBroker.AuthorizeAsync( new ClientSecrets { ClientId = "my_client_id", ClientSecret = "my_client_Secret" }, new[] { MirrorService.Scope.GlassTimeline }, "username", CancellationToken.None, new GlassDataStore() ).Result; When I run this locally from Visual

Google Glass Android : How can i use voice trigger from current Activity (to switch cards from cardscroller)

好久不见. 提交于 2020-01-06 16:59:27
问题 I am using a cardscrollview in an Activity to show text and pitcures on different cards. Today i can scroll by using touchpad and swipe left or right but i want to scroll between cards using voice . Example : when i say "next" i would like to scroll forward, and when i say "prev" i would like to scroll backwards. I saw different answers on stackoverflow like this one or this one and it looks like you can't include GlassVoice.jar anymore (tried it but not working). I saw on google

How to authenticate when using VideoPlayer?

不羁的心 提交于 2020-01-06 13:53:07
问题 I am implementing the following solution Play a video in Glass Intent i = new Intent(); i.setAction("com.google.glass.action.VIDEOPLAYER"); i.putExtra("video_url", "..."); startActivity(i); But I am getting hit with a 401 error. To authenticate I need to include my key/value pair in header. How do I go about doing that, with intents? 10-16 14:58:55.229 126-10199/? I/ChromiumHTTPDataSourceSupport﹕ Server responded with http status 401 10-16 14:58:55.229 126-10470/? I/AwesomePlayer﹕

How to authenticate when using VideoPlayer?

ぃ、小莉子 提交于 2020-01-06 13:51:49
问题 I am implementing the following solution Play a video in Glass Intent i = new Intent(); i.setAction("com.google.glass.action.VIDEOPLAYER"); i.putExtra("video_url", "..."); startActivity(i); But I am getting hit with a 401 error. To authenticate I need to include my key/value pair in header. How do I go about doing that, with intents? 10-16 14:58:55.229 126-10199/? I/ChromiumHTTPDataSourceSupport﹕ Server responded with http status 401 10-16 14:58:55.229 126-10470/? I/AwesomePlayer﹕

Keeping Android camera open across activities

人盡茶涼 提交于 2020-01-06 03:05:40
问题 I'm trying to open the Android camera and keep it running in the background constantly across multiple activities for a variety of long-running frame consumers for both Glass and non-Glass devices. This means I can not simply close the camera when one activity stops and re-open it when the next one starts; it must stay open the entire time. I've tried creating a SurfaceView using the Application as the Context (rather than an Activity) and adding it directly to the WindowManager. This does

NullPointerException when calling Card.addImage(Uri)

不问归期 提交于 2020-01-06 01:51:11
问题 I'm getting a NullPointerException when attempting to add an image Uri to the Card . Any thoughts? Is it a bug in the GDK? This method is documented. Relevant Code: for (CardPresenter cardPresenter : mCardPresenters) { Card card = new Card(this); card.setText(cardPresenter.getText()); card.setInfo(cardPresenter.getFooter()); for (Uri uri : cardPresenter.getImages()) { if (uri != null) { Log.w(TAG, "ImageUri: " + uri.toString()); card.addImage(uri); // <!------------------- ERROR } else { Log

Back Swipe not working in Google Glass Activity

有些话、适合烂在心里 提交于 2020-01-05 08:21:41
问题 I've created a basic activity for Google Glass, but it will not allow me to use the standard down swipe to go back in the stack to the previous activity. I've tried giving the activity focus with this code: @Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.layout_orienation_detection_activity); mView = getWindow().getDecorView().findViewById(android.R.id.content); mView.setFocusable(true); mView.setFocusableInTouchMode(true); } @Override