Google Glass Sample Card App Crashed - google-glass

Hi guys I have developed sample card application for google glass which was working fine before updating glass firmware , but now when I open it shows exception
java.lang.NoSuchMethodError: com.google.android.glass.app.Card.setInfo
I have already reinstalled it many times but it is not working!
what to do ?

Make sure that you've updated your copy of the Glass Development Kit Sneak Peek in the Android SDK Manager whenever you get a new XE release on Glass. The Card class's setInfo method was renamed to setFootnote in XE12.

Related

Remove app title and icon overlay on Google Glass app

I've just developed my first Google Glass app (Android Studio) and I was hoping you all might help me work through a problem. I initially developed the app for Android and made the necessary modifications to be able to target Glass (a few updates to the manifest and a few new xml files). The app installs and runs just fine on Glass, with the exception of one quirk: the app icon and title are overlaying the top ~20% of the Glass display, like a title-bar banner.
Is there something that needs to be added/subtracted from a typical android development environment to disable this overlay?
Sorry I don't have a screenshot. I can try to figure out how to capture one on Glass if it helps.
I got to the bottom of if.
Remove app title bar android
I failed to put the android:theme="#android:style/Theme.NoTitleBar" declaration in the correct place in the manifest.
Thank you.

Install google glass app to android mobile

I'm developing app for google glass. I don't have glass, so i used to install file to android device. I referred this document Installing Google Glass in an Android Phone . But when i install and open my own custom voice trigger app, it won't open. I didn't see my app in list of voice command.
There are a few things to keep in mind.
First of all, those instructions were for a much older release of the Glass system. There have been many changes in how to launch a GDK app since then, and the most recent have been outlined in Why is my voice command missing from the ok glass menu in XE16?
Second, it is really difficult to appreciate the differences between Glass and more traditional Android devices. While you can probably get a basic understanding of development for Glass, you may have trouble understanding the UX differences. It is like trying to write for a mobile phone only by using a desktop computer.

Chartboost sample app not showing Ads

I am trying to integrate a tool Chartboost into our game.
We are using following tools for development.
Xcode 5.0.2.
Latest ChartBoost Library.
Deployment target being iOS 6.1.
Base SDK being iOS 7.0.
Game Engine Cocos2d-x ( C++ ).
In order to use ChartBoost I followed these steps.
Created an account at Chartboost.
Added an app
Platform: iOS
Nick Name: Added
-Test Mode: Enabled
and Its showing the App Id and App signature.
Added a Campaign.
-Its On.
-CampaignStart and End are blank, so it will be effective as soon as possible.
-Filter By Bundle verion is Min 1.0 and Max blank .(already tried by keeping both blank.)
-Selected the App I added ,as the app where this campaign will run.
-Campaign Logic: Added test device with UUID.
-Rest of the options are untouched.
For test purpose I downloaded and used the sample iOS project provided at ChartBoost site. I replaced the App Id and App signature with my App's ID and Signature.On running the app, it does not display any ads. It logs messages like :
-failure to load interstitial at location Default
-failure to load interstitial at location Pause screen
-failure to load more apps
-failure to load interstitial at location After level 1
I am not able to conclude what wrong I have done! Please help on this issue.
PS:
1. I have already received a mail from ChartBoost mentioning I have successfully integrated the SDK, and in front of added app , the SDK and Frame icons are lit(green), which essentially shows , I have integrated the SDK correctly.
2.Our game is still under development and as we are using the Cocos2d-x which is c++ Game engine ,so we will be using some wrapper to call the ChartBoost library. Once we get the idea how it works on native platform.
In Chartboost sometimes it happens that you have set in the Chartboost dashboard that your game is in "Landscape" mode for example.
While your game is actually running in portrait mode.
In such cases you will get these errors.
Make both these same. Either change in the Chartboost dashboard for your app or change in the game's project file :)

Class not found error for any glass api

I configure eclipse ADT for glass development successfully.
Then I create a sample project and try to develop google glass card or timelineitem.
when I compile and run, an error occurred from android tuntime
java.lang.NoClassDefFoundError: com.google.android.glass.app.Card
this error also occurring for
com.google.android.glass.timeline.TimelineManager
Error Log
How can I solve it?
You have to set your project to compile with the Glass GDK.
Make sure you're targeting 15, have the GDK downloaded as per the other answer, and then:
Select your project on the left side of the screen, open project poperties (alt-enter, or right click -> properties), go to Android tab, scroll down to Android 4.0.3, and in that section will be the Glass Development Kit Sneak Peak. Check the box next to this, hit ok and everything should start working.
EDIT:
Just to make sure, your manifest should have this line:
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
Make sure you are targeting API 15 and that you installed the glass development Kit.
See the Picture:

What is the difference between Glass Mirror API and Google GDK?

What is the difference between Glass Mirror API and Google GDK?
Google has announced the GDK here: https://developers.google.com/glass/gdk
but they haven't exposed any new features specific to Glass yet. How do we actually use the Google GDK?
Looking at the examples listed on the above link, we can create APKs, load APKs onto Glass and launch them using adb shell but is there a complete app or example anywhere?
The difference between the Mirror API and the forthcoming GDK boils down to where the application being written will run.
The Mirror API specifies how a web-based application will communicate with Google's servers to send updates to a user's Glass and how it will receive notifications when the user takes an action (such as a share, or a location change) that is directed at the Glassware.
The GDK is intended for applications that will run on Glass itself and have more low-level access to the sensors and to the underlying Android environment that Glass is built on top of. Google has not released the GDK yet - that page is where it will be released, and provides some early "getting started" concepts for developers who are interested in building native apps that run on Glass.
GDK has not been launched yet, so you cannot actually use it right now.
GDK will allow you to work directly on the Glass device using your Android development skills whereas Mirror API is a cloud/web-based API for interacting with a user's timeline only. See Prisoner's answer for more detail on this.
Because GDK has not been released yet, "complete" apps and examples do not exist. There are three samples (Compass, Level, and Stopwatch) listed on the link that you posted. The page says that these samples will eventually be updated into a "full Glass experience" when GDK is launched.
When we launch the GDK, we'll also update these samples to show the migration path from a traditional Android app to a full Glass experience. Make sure to check regularly for updates
Glass Mirror API is for developing the Glassware(Pushing Webcards from server to Glass).
Google GDK(Glass Development KIT) is similar to current Android SDK, but they will have some special tool that will help develop Android Apps for google glass. Even now without GDK, developers are developing apps using Android SDK.
GDK will allow you to run apks on GLASS along with the GlassHome. GlassHome is the main display that you see within GLASS. If you install an APK without the GDK, the only way to get to it is using something like Launcher2.apk. With the GDK, and this is an assumption, your apk will be represented as a card within GlassHome.