google-glass

Want to create apps for google glass.

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 01:47:22
I want to create a new app from the beginning in eclipse using java. I have android sdk, Google app engine, maven with my eclipse. Then how I start? Google quick start tutorial is little bit clumsy. I just want to make a timeline card and want to pass value "Hello World". Then want to view from my Google glass. Update: GDK Preview 11/19/13 https://developers.google.com/glass/develop/gdk/index And Finally: here is how to hello world in Glass.. Create a basic hello world apk. Install the apk on glass by following this link. The official GoogleGlassDevelopment kit is not yet available for all

Why does Glass/GDK based VoiceListener only catch VoiceCommand once in XE16?

南楼画角 提交于 2019-12-06 01:10:16
问题 In search for a way to implement contextual voice commands with Google's GDK i came across this post. Yet, the example code seems to work only in XE12 not in XE16+. I tested this code recently, but the onVoiceCommand(...) method is only called once in the lifetime of a related Activity. My expectation would be that a user's voice command can be obtained multiple times, i.e., if a user returns to a certain Activity from another one. I even tried to remove and reattach the Activity and/or

Google Glass Android Studio Gradle issues

十年热恋 提交于 2019-12-05 21:44:01
I am trying to build my first Google Glass app, using Android Studio 0.5.4. But am getting a build error: Error:Module 'TestApplication-TestApplication': platform 'Google Inc.:Glass Development Kit Sneak Peek:15' not found. As you can see the GDK, and all necessary library files are installed. I have looked at a few different questions about this already, primarily Google Glass: GDK with Android Studio Android Studio || GDK 'hello word' || import com.google.android.glass.app.Card || Cannot Resolve Symbol 'google' Error:Module 'App name': platform 'android-15' not found Which recommends to

Google Glass GDK Authentication using PHP

天涯浪子 提交于 2019-12-05 16:27:29
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 The service auth page is the page that is opened when that user turns on your application in MyGlass.

Google Play Services “Not Authentic” on Glass

杀马特。学长 韩版系。学妹 提交于 2019-12-05 13:26:28
I'm attempting to get a user's current location on Glass. Calling mLocationClient.connect() fails without any resolution. Then I checked if Google Play Services was available on the device with: GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); This returns ConnectionResult.SERVICE_INVALID , which according to the documentation means that "The version of the Google Play services installed on this device is not authentic." The Setup Google Play Services SDK guide does not describe that scenario. Does this appear to be a bug on Glass itself? If so, I'll file a bug report. Google Play

How to send email via Glass

二次信任 提交于 2019-12-05 08:17:14
I am trying to send an image taken from Glass with below code... Intent emailIntent = new Intent( android.content.Intent.ACTION_SEND); emailIntent.setType("plain/text"); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] { "xyz@gmail.com" }); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Subject"); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My image attached"); emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(imageLocation)); startActivity(Intent.createChooser(emailIntent, "Send mail...")); But I am getting "No apps can perform this action".

Google Glass: Developing and testing using PlayGround

﹥>﹥吖頭↗ 提交于 2019-12-05 07:20:44
问题 I am not a person with the Google glass and I am not a person registered glass explorer. It seems like we can't develop for glass at the moment. - https://developers.google.com/glass/quickstart/java Is this is it or is there another way around? I have seen a post from another member, developing a prototype with the playground. He mentioned about "uploading" HTML files to the playground, so, I also need to develop a UI prototype. But I have never seen a way to upload anything to play ground

How can I brighten the screen when opening an Activity in my Glass GDK immersion application?

蹲街弑〆低调 提交于 2019-12-05 05:51:35
I have a GDK immersion application, where the launcher Activity acquires a SCREEN_DIM_WAKE_LOCK WakeLock . The app also has a Service which will receive chat messages and starts an Intent for an Activity to display each one. Whenever the message Activity is opened, I want to brighten the screen. However, all of the methods I have found do not seem to work. For example, adding the following into onResume has no effect: Settings.System.putInt(getContentResolver(), SCREEN_BRIGHTNESS_MODE, SCREEN_BRIGHTNESS_MODE_MANUAL); WindowManager.LayoutParams lp = getWindow().getAttributes(); lp

Detect Google Glass Programmatically

蹲街弑〆低调 提交于 2019-12-05 05:50:30
From a native application how can we detect Google Glass verses a smart phone from code? Moving correct answer to question: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build.MODEL.startsWith("Glass"); } Another way of doing this would be to use the Build API: http://developer.android.com/reference/android/os/Build.html Using the GDK, you could use: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build.MODEL.startsWith("Glass"); } (The model check may be good if a new model of Google Glas comes out.) jeffrey_t_b I

Can GPS for Glass be accessed through the Android SDK?

夙愿已清 提交于 2019-12-05 05:29:15
问题 I realize the GDK hasn't been released yet but I've started experimenting with putting APKs on Glass as google encourages (https://developers.google.com/glass/gdk). I wrote a very simple app for jogging that calculates distance and pace from the LocationManager. Does anyone know if this should or should not currently work natively with Glass (i.e. without having to pair with a phone)? From reading up on a Glass teardown it looks like it has a built in GPS chip. I'm having problems getting GPS