Menu
  • HOME
  • TAGS

Simulate Touch Controls Through Code

android,google-glass,google-gdk

The Solution In the end I went a different direction then the one I mentioned in my edit above. I found out that it is possible to call touch controls in the shell by using adb shell input keyevent <keycode here> I then found a way to use this in...

TCP & UDP Over Wireless with Google Glass

android,network-programming,google-glass,google-gdk

Check out this thread on HERE Btw, is your project open sourced?...

RuntimeException and InflateException: Binary XML file line #7 .. followed by ClassCastException

java,android,xml,google-glass,google-gdk

Update: The solution was the following: In your SliderView.java constructor ( public SliderView(Context paramContext, AttributeSet paramAttributeSet, int paramInt) ): Change: this.indeterminateSlider = ((ImageView) findViewById(R.id.indeterm_slider)); to: this.indeterminateSlider = ((ImageView) findViewById(R.id.indeterminate_slider)); In your slider.xml (located in res/layout/ ) : Change: <ImageView android:id="@id/indeterminate_slider" [...] /> To: <ImageView android:id="@+id/indeterminate_slider" [...] /> The main problem...

Check out Project from Version Control Fails

android,git,android-studio,google-glass

I've met with the same problem as you. (also Android Studio 1.0.2, but on windows) Here's the solution I've found: for Check-out/clone issue, make sure you've installed git and it is accessible in your android_studio. At Android_studio, set the git in the following settings page (My path is under Windows...)...

Displaying Multiple Images on a Single Google Glass Live Card

google-glass,google-gdk

Simply add more ImageViews, either in your layout file (iot_splash_screen) or programmatically. With the resource IDs of your ImageViews, you can call setImageViewResource on each one. Make sure that you are setting these images before calling setViews on your Live Card....

cannot resolve symbol 'CameraConfigurationUtils' on Google Glass

android,google-glass,zxing

You downloaded the zxing source code. The glass module depends on android-common which has the class you're looking for.

Send camera stream from Google Glass to Android device

android,opencv,camera,stream,google-glass

You could try to encode your image in Base64 to send them via Bluetooth using a protocol like XML, JSON or protobuf. Probably this is not the most efficient method but it could be the easiest for you at this moment. But always take care if you want to access...

Import android.content.Intents

java,android,google-glass,google-gdk

The Intents class you're talking about is from the com.google.android.glass.content package.

How does NodeAPI in Google Play Services work?

android,google-glass,android-wear,google-api-client,android-wear-data-api

Sorry to tell you man but google play services dont work for glass, but as I read your question i think you want to check if your glass/ watch is connected to the mobile or not, try to make bluetooth connection via socket for glass and unique ID would come....

GDK retrieving account information

google-oauth,google-glass,google-gdk

This is indeed correct: the token will only be sync'ed and available once the APK from MyGlass has been downloaded to your device and installed. After this first installation, you can safely replace the APK with a development one using adb install -r as long as it's using the same...

EyeGesture and EyeGestureManager clarity needed

java,android,google-glass,android-logcat,google-gdk

Google team already answered some of these but I will go ahead and provide more details about their answer and also provide an alternate way of doing these stuff you requested. Dim the screen if there isn't an expectation that a user is looking at it. This is consistent with...

Project runs from eclipse but when exported to gradle async throws error

android,eclipse,android-studio,google-glass,google-gdk

Alright after taking a closer look at the AsyncTasks themselfs I figured out where the error was coming from. Apparently when converting the project to android studio it isn't taking the values for the asyncTask It was looking like this AsyncTask<?, ?, ?> someTask; I then went on and changed...

Creating Immersions, android:immersive=“true” flag

android,google-glass,google-gdk

Create a member boolean variable like mInitialLaunch in Activity B and C. In onCreate of Activity B and C set mInitialLaunch to true. At the end of onResume in B and C, set mInitialLaunch to false. At the start of onResume in B and C, check mInitialLaunch and if it...

Use Google Glass Mirror API to scan QR code

google-glass,google-mirror-api

You cannot present a QR Code scanning screen to your user by only using the Mirror API. Nor can you add a MenuItem allowing the user to send back a picture. But, you can register as a contact, and have your users share with you pictures containing QR Codes. More...

Messenger speak to text functionality in custom application

android,google-glass

It's alright everyone. You can use Android's native API to achieve the same affect. Here is where i found my answer. http://viralpatel.net/blogs/android-speech-to-text-api/

Attaching Images with Google Mirror API from Android doesn't work

java,android,google-glass,google-mirror-api

There are a couple of problem with your codes: timelineItem.setHtml(htmlMessage) masked off the background image so the picture did not show up. I changed the code to timelineItem.setTex(message). The image showed up with the message overlay on top of it. The code for attachment is not correct (I think contentType...

Google Glass GDK Hello World Immersion Activity

google-glass,google-gdk

Now, what i have understood, we can run this app by trigger voice command "SHOW ME A DEMO", Is that right or wrong ? It's correct. YOu can even configure this trigger and use other commands. And is there any way to run Glass GDK app on Android Emulator...

How do I start a Thread as soon as my Google Glass application starts?

java,android,multithreading,google-glass,google-gdk

Unlike most regular android apps, Glassware typically launches a Service (which runs in the background) rather then an activity (which is a foreground task). Is is because a lot of the time you will want to interact with the timeline (i.e. add live cards etc) rather than take over the...

.NET - Wierd response from Google Mirror API

c#-4.0,google-glass,google-mirror-api

I've recompiled the Google Mirror API to use a different version of Newtonsoft.JSON . This has solved the issue. The parent program was using a different version of Newtonsoft.JSON, so recompiling the code targeting this version has fixed the issue. The source code for Google.Apis.Mirror.v1 can be downloaded from https://google-api-client-libraries.appspot.com/download/library/mirror/v1/csharp...

Wink detection on Google Glass with XE22

android,google-glass,detection,aero-glass

The library you posted is pretty outdated (last change 11 months ago). There is currently no official way to detect a wink. I had the same problem to detect only the wink and stop glass to take pictures when detecting it. There are several ways to detect such EyeGestures. Here...

Configure Google Glass as Android Studio AVD

android-studio,google-glass,android-avd

You can't simulate a Google Glass device with AVD. You can only create a device with the same hardware specifications that Google Glass, but you can't install the Google Glass specific libraries. Even with Genymotion you can't at the moment. Here is a post which talk about it: Is there...

How to switch Google accounts on Google Glass?

google-glass

I'm not sure that is the problem, but it is possible. There is no way to switch accounts on Glass. I would suggest you make sure any pictures you have on Glass are backed up, do a system reset, and initialize it with the account used on one of the...

Can HTTP requests be sent from Glass?

java,android,http,servlets,google-glass

Glass supports HTTP calls - I don't think that is your problem. The issue seems to more likely lie in your servlet or network configuration (or some combination of them). Some things to check: Make sure your Glass is connected to your local network, and the same local network that...

How to start automatically an application when Google glass start?

android,google-glass,google-gdk

Google Glass is an Android devices. It behaves just like an Android device. You can start an application on boot just like how we do it on normal Android devices. How to start an Application on startup? Or you can make a launcher application and disable the launcher on the...

Updating a Card in a CardScrollAdapter from an AsyncTask

google-glass,google-gdk

You need to create your owns layouts. If you use Card, you can't modify the image after calling getView() If you don't know how to do a similar layout of Card, Google give you some examples here: https://developers.google.com/glass/develop/gdk/ui-widgets#xml_layouts PD: I think that you could change the image if you could...

View images transferred to Google Glass via USB

android,image,usb,google-glass,google-gdk

This app allows you to browse all the media files in your DCIM/Camera directory http://html5webapp.blogspot.de/2014_04_01_archive.html So download the zipped file, extract it, place the resulting .apk file in <sdk>/platform-tools/ Then on the command line (or terminal), go to the directory where the [application.apk] file is, and type the following commands...

Prevent menu text from ellipsizing

google-glass,google-gdk

Changing the formatting of the menu labels is not possible through public APIs. From a UX point of view, menu labels longer than two or three words seems undesirable. Consider that if you enable voice menus in your application, those commands should be brief that the user can speak them...

Google Glass App disappeared from timeline

android,xml,eclipse,google-glass

Usually when you don't see the command in the menu in post XE16 builds it's because either the voice command XML isn't properly formatted (did you manually recreate it?) Or you might be missing the development permission. Please post manifest and voice trigger XML.. ...

Glassware installing Success, but how to activate it on the device?

installation,google-glass

If this is your own developed application, then in the manifest check if you have added <intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger_start" /> under your launcher activity. Your res/xml folder will contain a file voice_trigger_start.xml which will contain this <constraints network="true" /> ...

Get Google Glass Name or Email

google-glass,google-gdk

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) getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); String myMac= wifiInfo.getMacAddress(); with the permission below: ACCESS_WIFI_STATE The Wifi...

I can't open the Google Glass Camera

android,android-camera,google-glass,google-gdk

Issue: Since you are using the Android camera APIs(http://developer.android.com/training/camera/cameradirect.html) versus Google Glasses specific Camera APIs(https://developers.google.com/glass/develop/gdk/camera), you will most likely need to restart your Google Glass. See other SO question: java.lang.RuntimeException: Fail to Connect to camera service I have ran into this issue many times. Basically, when you are attempting to...

what is HeadGestureManager and is there a way to use it?

android,google-glass,gesture,google-gdk

It isn't documented right now, so probably the feature wasn't ready yet. So I guess trying: HeadGestureManager hgm = new HeadGestureManager(); didn't give any autocomplete? If not and you really want to experiment with this (since it looks like it is already there), you could always try using reflection. A...

How can I enhance my usage of a menu layout?

google-glass,google-gdk

The GDK menu works in the same way as the android context menu's on a phone. It's designed for simple menus with just text and an optional icon. If you want to do something more complex (Like the glass settings) you would need to use a CardScrollView and add your...

Detect overheating in Google Glass programmaticaly

android,google-glass,battery

Google Glass have (at least) two temperature probes. One for the battery, and the other for the CPU board. You can read them as a regular file. Battery /sys/devices/platform/omap_i2c.1/i2c-1/1-0055/power_supply/bq27520-0/temp CPU Board /sys/devices/platform/notle_pcb_sensor.0/temperature But keep in mind that these files may change location as new versions of Google Glass are shipped....

Where does the Share button in Google Glass send the data?

php,google-glass,google-mirror-api

The shared picture or video is downloaded through the download_attachment function in mirror-client.php of the Quickstart PHP project. Here is the function: /** * Download an attachment's content. * * @param string item_id ID of the timeline item the attachment belongs to. * @param Google_Attachment $attachment Attachment's metadata. * @return...

Is Google Glass Mirror API dead?

google-glass,google-mirror-api

If you are trying to access the exact URL you specified (https://www.googleapis.com/mirror/v1), it won't work. That isn't a valid endpoint itself for the API. All of the API calls are to URLs that start with that prefix. For example, once authorized, the URL https://www.googleapis.com/mirror/v1/timeline should get the timeline items for...

Simulate a touchpad event on Google Glass

android,google-glass

This is how I did it in Xamarin. It would be something similar in Java. private void issueKey(int keyCode) { Java.Lang.Process p = Java.Lang.Runtime.GetRuntime().Exec("input keyevent " + keyCode.ToString() + "\n"); } ...

Google Glass does not appear on Android Studio devices

android-studio,google-glass

I had the same issue. I posted about it earlier this year on the Glass Explorers forum to ask for some help. I got a couple of responses, tried them, and this is what worked for me, posted by Kevin "Are you running Windows? If so open the device manager...

Load local html file to Google Glass

android,android-webview,google-glass,google-gdk

You can use webview in glass, but I found it didn't work well with scrolling etc, and then it was better to just open it up in a browser activity. I had an HTML file as a resource so before opening it up in the browser I had to copy...

No CameraManager import available on GDK app

google-glass,android-gradle,build.gradle

Set: compileSdkVersion "Google Inc.:Glass Development Kit Preview:19" I am not sure, but you may have to put gdk.jar in your libs/ dir too....

Google Glass: Can't swipe between cards in immersion

java,android,google-glass

In your onCreate(), add this line before the setContentView() like this: mCardScroller.activate(); //add this line setContentView(mCardScroller); You had this line in your onResume() and that's why it is behaving as is....

Google Glass Eye Gesture Crashing (EyeGestureLib)

google-glass,google-gdk,google-mirror-api

The API has changed a long time ago (around XE 20 I think). I had to do quite a bit of digging with reflection to figure out the workings of EyeGestureManager. Here's my updated version, along with some sample code demonstrating usage: https://gist.github.com/victorkp/9094a6aea9db236a97f3...

Adding exit voice command to Google Glass

google-glass

There is no simple way, just go the standard routine. Add a voice trigger for a close option in your menu and call finish() on execution.

Computer not finding Google Glass fastboot driver

android,adb,google-glass,fastboot

Found instructions to create a universal adb driver here: http://ktnr74.blogspot.com/2014/11/how-to-make-truly-universal-adb-and.html I modified my android_winusb.inf file as per the instructions on this blog, and after that I was able to update my driver software using the device manager. I directed the device manager to the usb_driver folder in my sdk for...

Picture File on RESULT_CANCELED

java,android,camera,google-glass

You could create a temporary file first (look at the createImageFile() method in this tutorial). If successfully created, do two things: Save the path of this file to a String. Include this file's URI in the intent extra (putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile))). If resultCode is RESULT_CANCELED, you can now trace back to...

Google Glass gestureDetector and setBaseListener

java,android,google-glass,gestures,touchpad

Your code formatting is a bit off, but it seems you are initializing "gestureDetector" as GestureDetector.OnGestureListener listener) { GestureDetector gestureDetector = new GestureDetector(context, listener); However, according to the Glass GDK docs at https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/touchpad/GestureDetector I see only a single constructor: public GestureDetector (Context context) Depending on where you are constructing this,...

Google Glass application change timeline name

android,google-glass,timeline

If you open res/values/strings.xml, your app_name should be listed as: <string name="app_name">[APP NAME HERE]</string> Change [APP NAME HERE] for the wanted name for your app. For a better explenation look at the following link under "Defining Menu Appearance": A Tutorial for Aspiring Google Glass Developers: Building Your First Glass App...

SpeechRecognizer broken after Google Glass XE17 update — how to work around?

speech-recognition,google-glass

Still works fine for me on XE17 with the method described here: Glass voice command nearest match from given list, maybe you called the initial setVoiceConfig with a null

System clock on my Glass device is wrong?

google-glass,google-gdk

I'm not certain, but I think the time is only ever synced from a paired phone, not from the internet. So are you pairing the device to a phone or connecting directly to wi-fi? In not paired to a phone, try that.

Google Glass Immersion Custom Layout without CardBuilder.Layout.EMBED_INSIDE

android,android-layout,google-glass

You don't need to use the CardBuilder if you prefer to use your own custom layout: make sure to follow our design guidelines to make sure you meet our specs. To use your custom layout, simply inflate a View as you would normally and use in your application. For an...

Android BLE: cannot write a Characteristic (no PROPERTY_WRITE)

java,android,bluetooth-lowenergy,google-glass,core-bluetooth

Seems that this was a bug in the Android BLE API. After the latest update (Glass XE18.3) this behaviour is gone and transmitting the Properties works as expected.

Google Glass: Card not being displayed

google-glass,google-gdk

If you are using an unregistered voice command, your manifest.xml must include <uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" /> See https://developers.google.com/glass/develop/gdk/starting-glassware for more details about using registered commands and unlisted commands and Why is my voice command missing from the ok glass menu in XE16? for some clarification and examples....

How to find the installed apps in google glass?

android,sdk,google-glass,google-gdk

If the application wasn't built properly for Glass (With a voice trigger and the development permission needed if using a custom voice trigger) it will install but you won't see it in the list of apps on the device, you can see more info in the link below: Why is...

Publishing Photo to Glass Timeline using GDK and NOT Mirror

google-glass,google-gdk,google-mirror-api

I've never tried TimelineManager before but I think Live cards is what you're looking for. It's used for publishing information to the timeline. No access to the internet required. The doc has the sample code and some sample apps also use it. Note: Static card is not supported by GDK...

Customizing Glass

android,google-glass,google-gdk

One good way to start around would be to check the tutorials about how to extract and repack system.img file. https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=android%20extract%20system.img Options in this search would point out to a certain direction. This will let you customize your own Glass image, remove/add system APKs, etc. Doing this, you should also...

Google Glass: Design yes/no option menu

android,google-glass

You should try to take advantage of what Google Glass can do; in this case, I would suggest you to use speech recognition for a simple Yes or No user response like this -- UI Diagram (Live card)--> app launcher | | Share Stop | onGesture activate | | voice...

Can I utilitze the GoogleGlass Compass or would i need to remake it for my needs?

android,google-glass

A demonstration compass app is one of the applications available from Google at https://developers.google.com/glass/samples/gdk

How to update Google Glass menu when receiving async data from service call

android,android-asynctask,google-glass

The Timer sample's menu Activity has some logic to dynamically change its options menu according to the state of the running Timer: In the MenuActivity's onCreate callback: bind to the TimerService. Once the Service is bound, retrieve information about the current Timer. Once all states are satisfied (Activity has been...

Change background of linearlayout in livecard

google-glass,google-gdk

You can try to give the layout id in the xml and then: @Override public int onStartCommand(Intent intent, int flags, int startId) { if (mLiveCard == null) { mLiveCard = new LiveCard(this, LIVE_CARD_TAG); RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.live_card); remoteViews.setInt(R.id.my_layout, "setBackgroundResource", android.R.color.holo_red_dark); mLiveCard.setViews(remoteViews); // Display the options menu when the...

Sending Email in Google Glass

android,email,javamail,google-glass,google-gdk

I found a solution for my problem. I was using the jar files that where linked in the awnser. However it seems that mail.jar file is outdated or just not working properly. I downloaded the following mail.jar JavaMail API 1.4.7 Then I replaced my current mail.jar file with the one...

How to create voice command inside immersion app - gdk [closed]

android,google-glass,gdk

I founded the solution for this question, If you want to know please go to this Is it possible to using voice commands for navigating instead of using swipe gesture? Hope this help !...

zxing scanner view shows wierd background in Glass

android,google-glass

Sean was almost right. However, the problem was not the size but the fps. I got the workaround from another post Google Glass preview image scrambled with new XE10 release. The trick is to add the following line in CameraConfigurationManager.java just before the call to camera.setParameters(parameters): parameters.setPreviewFpsRange(30000, 30000); This makes...

scrolling through xml layouts

google-glass,google-gdk

You can use CardScrollView for that. Please see the GDK doc: Card Scroller CardScrollAdapter CardScrollView In onCreate: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // create the CardScrollView set the adapter in onCreate mCardScrollView = new CardScrollView(this); mCardScrollView.setAdapter(new YourScrollAdapter()); // ... } The adapter (Here I use my card_simple_layout layout.):...

Get multiple voice commands when launching an application

android,google-glass

Take a look if this is useful for you I was able to get a menu on my screen when saying ok glass in the app itself with the menu options that I've entered in my xml file. be sure to add <uses-permission android:name="com.google.android.glass.permission.DEVELOPMENT" /> to your manifest. It's for...

Error Implementing Google Maps API to Google Glass

android,google-maps,google-glass,google-gdk

From what I understand Google Maps requires Google Play Services. At the moment Google Play Services still aren't officially available on Glass. Also another note is that Glass doesn't have an on device GPS, it actually uses the GPS from your phone for high accuracy positioning.

Start a Google Glass immersion app from remote site

android,google-glass

I solved it as follows: I send a live card from the 'site' to the Glass. In the Glass app I created in the AndroidManifest.xml in the MainActivity an intent-filter with a scheme: <intent-filter> <data android:scheme="component.name.scheme" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> In the live card, I call...

Connectivity problems with Glass

google-glass,google-gdk

Once you get the correct values into android_winusb.inf it works fine, see Google Glass ADB devices doesn't find. OMAP4430 driver not installed (can't find it!) Here's an example on a Win7 box: (edited to include screen capture)...

mSlider.startIndeterminate() not working

java,android,google-glass,google-gdk

The Slider API relies on the View you used when initializing it to be VISIBLE so that it can properly recycle sliders that were started from Views that got hidden. Could you try starting your load video task in the onResume callback instead of onCreate? At that point the CardScrolLView...

Is it possible to using voice commands for navigating instead of using swipe gesture?

android,google-glass,google-gdk

Here, It is my solution. Hope this might helped someone who looking for. I used Contextual voice commands to provide 'Next', 'Save' and 'Exit' commands for an user. you can go to this document from google dev site to see the ideas of doing this. I have my layout activity...

Google Glass: Why Get Directions card require glass to connect with the MyGlass app on Android or iPhone?

google-glass

Google Glass does NOT have a GPS radio built-in, it relies on the GPS in the connected Android or iPhone. In addition, to get directions a connection to the internet is required (either via WiFi or by using bluetooth to connect through your Android or iPhone).

How to manage multiple menus for voice and touch input in Android / Google Glass

android,google-glass,google-gdk,android-menu

The solution is in the onPrepareOptionsMenu public boolean onPrepareOptionsMenu (Menu menu){ for (int i = 0; i < mJobMenu.size(); i++) menu.add(Menu.NONE, i, Menu.NONE, mJobMenu.getItem(i)); } The onPrepareOptionsMenu is called by the system and the menu items are added to the menu that is passed to it. This happens every time...

Is my Connected Node a Glass or a Watch?

android,google-glass,android-wear,google-api-client,google-client

It shouldn't be an issue for you at the moment since Glass does not support NodeAPI. Please refer to my answer to your other question here....

proper way to present a cardScrollActivity before a live card for google glass

android,google-glass,google-gdk

For this case I would still have the service be the entry point and use the following to start the scroll activity from the service (depending on the use case); Intent intent = new Intent(getBaseContext(), CardScrollActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); getApplication().startActivity(intent); Then after making your selection and before finishing your activity, using a...

Creating multiple cards to scroll on google glass

java,android,google-glass,google-gdk

You forgot to activate your ScrollView. Also as a side note, you shouldn't make your cards outside of the adapter and before everything. Not only is that loop inefficient (runs the .size every iteration) the amount of memory to store the views is not necessary. Try doing something like this:...

Losing Activity focus after Contextual Voice Commands

java,google-glass,voice,google-gdk

It turns out that the problem was with the Manifest file. I was setting a theme to the application, ie. <application android:theme="@android:style/Theme.NoTitleBar"> ... Once I removed the theme, everything worked perfectly. The GDK demo sample by Google was helpful when I was trying to find this odd error....

Targeting Glass as well as tablets. Are multiple intent-filters required?

android,google-glass

For those interested, my testing shows that you can support Google Glass as well as other Android devices by adding both the intent filters.

Google Glass - Does every app need to register a voice trigger with Google?

android,google-glass

Glass takes a slightly different approach to user interaction. Instead of thinking about "what app to launch?" it focuses on "what action does the user want to do?" Similar to intents, if no other app is registered for the voice command, it will direct the command to the one registered...

How to save and retrieve a file on Google Glass?

java,android,google-glass

openFileOutput will create/write to a file that is internal to your application (the parameter MODE_WORLD_READABLE has been deprecated). Ideally, this means you should not be able to access this file from a computer. Use an external storage public directory instead: File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); file = new File(path, filename); To...

Programmatically populated contextual “ok glass” menu

google-glass,google-gdk

From what I understand you want you application to be already running when the user speaks. If this is correct then you can simply implement a custom menu with contextual voice commands. I believe you can always repopulate the menu just before it is being shown by overriding onPreparePanel. I...

Google Glass Live Card Menu Action Causes Crash

java,android,nullpointerexception,google-glass,google-gdk

You definitely shouldn't keep this LiveCardService instance. You should rather talk to your Service unsing intent: Intent intent = new Intent(this, LiveCardService.class); intent .setAction("RESET"); startService(intent); and then, inside your Service: @Override public int onStartCommand(Intent intent, int flags, int startId) { if("RESET".equals(intent.getAction()) { // do the reset here resetWaypoints(); } }...

Android Photosphere Code Samples

android,google-glass,google-gdk,photosphere

Photosphere was only added into the settings of Google Glass specifically for the easter egg. It is much like Google Play Services near the beginning. They built their own version for there use and that is it. Development for it is not supported and not accessible by any third party...

How to activate device admin on google glasses?

google-glass,google-gdk,device-admin

Android stack on Google glass doesn't support admin feature.

I dont know how to change ok glass phrase in google glass

android,google-glass,voice-recognition

You need to request special permissions in your manifest to implement unlisted voice commands. Go here. However, I doubt you can change the 'ok glass' voice command. You can still try if you really want to.

Grace period slider in a high-frequency live card?

google-glass,google-gdk

Something like the following should work for you; the following class wraps up grace period/confirmation dialog logic to provide the same experience as built-in Glassware. public class GracePeriodDialog extends Dialog { private static final long COMPLETION_MESSAGE_TIMEOUT_MILLIS = 1000; private final DialogInterface.OnClickListener mOnClickListener; private final AudioManager mAudioManager; private final GestureDetector mGestureDetector;...

Open CV loads only when app is connected through Eclipse- Android

android,opencv,google-glass

I guess this is a bug in Google glass GDK. My debug points were not getting detected so i had to use android.os.Debug.waitForDebugger();to debug my app. Even after being deployed onto the device glass waits for debugger and freezes.Once I removed that line, it works.

Camera Intent copying to custom folder delayed

android,google-glass,google-gdk

I am not sure what you mean by "I thought it's not working" but you might need to send a broadcast to let the gallery know that you added new images. sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"+ Environment.getExternalStorageDirectory()))); Please see Image, saved to sdcard, doesn't appear in Android's Gallery app and how to...

How does the GDK android camera example work?

android,google-glass,google-gdk,abstraction,android-file

You are referring, I presume, to this line: final File pictureFile = new File(picturePath); What they have done is created an instance of a File object from the file path where that image is stored. This File object is what they need to do some processing on the image. The...

Google Glass: Camera.open() always causes a runtime exception

android,google-glass

Place permissions above the Application tag, in your manifest file <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus"> <application> <activity></activity> </application> i kept the permissions on wrong place thats why i kept on getting the same error! Hope this will help you too...

Google Glass unlisted Contextual Voice Commands not working properly

java,android,google-glass

I tried some of the voice commands and here's what I found: "Test" does not seem to work. "test" with the lower case first letter, on the other hand, does work. It seems like this only affects certain words since I've been able to use "Next" as a trigger successfully....

How to implement custom CardScrollView on Google Glass?

android,google-glass,google-gdk,cardscrollview

in your code just change the data like you normally would by finding the view and then changing things to it. I believe that should just do it for you. If you're trying to add cards during runtime you just have to notify the adapter that your datalist changed since...

How to receive data from Google glass in Mirror API

servlets,google-glass,google-mirror-api

You will need to have your Glassware on a server that is able to receive HTTPS connections from the public Internet. If you have it on a private server, or on a server without HTTPS, you will need to setup a tunnel. To actually get the callback, you need to...

How to add library project to an existing android project in AndroidStudio

android,android-studio,google-glass,android-library

To import library into Android Studio: select File > Import, and then select the directory containing the project to import. a wizard will open and guide you through the rest of the import process. When the project import has finished, it will open up a file called "import-summary.txt" which lists...

libstreaming - videoQuality not being set

android,video-streaming,google-glass,rtsp,libstreaming

I only seemed to be able to change the resolution to the following two values: .setVideoQuality(new VideoQuality(640, 480, 20, 500000)) or .setVideoQuality(new VideoQuality(960, 720, 20, 500000)) The code did not seem to work if the framerate was raised over 20 fps either....

Going from a high-frequency livecard to an immersion (an activity)

google-glass,google-gdk

I got it working. Here are the additional changes I made: Changed the onStart() within my main activity while adding an argument to the CompassRenderer constructor Changed the CompassRenderer constructor's body CompassMain.java @Override public void onStart(){ super.onStart(); // show the view and create the setContentView(R.layout.compass); CompassView compassView = (CompassView) findViewById(R.id.compass);...