java - How to install custom Google glass app on phone -
I have created a set up sample for Google Glass on Android device and it works.
Then I have tried to install Hello World Glass app on Android device, to create a custom application such as Hello Glass, after the installation of the voice command should respond to "Hello Glass" and the new The card will show "Hello sir or mam! .." but thank you this glass glass
Thanks in advance.
If you use a glass-specific API, you can not run Glass app on the Android app. So, if you want to take an app that runs on both glass and non-Glass Android phone, you should check to see if your app runs on the glass and apply different codes when needed. . For example, you can code like this:
try {class.forName ("com.google.android.glass.timeline.TimelineManager"); Logs. V ("> gt;>", "Timeline Manager Found"); } Grip (Clasnotfooundation e) {log. V (">>>" Timeline Manager Class Notoft "); } {Class.forName ("com.google.android.glass.timeline.LiveCard") Try it; Logs. V ("> gt;>", "Livecard Found"); } Catch (Clarusotfound Exception E) {log. V (">>>", "LiveCard Class Notes"); } String creator = build. MANUFACTURER; String model = build.model; Logs. V (">>>", "Build:" + Maker + "," + Model); and the output will be on the glass:
04-26 08: 00: 49.616: V /> gt; & Gt; (1988): Timeline found that 04-26 08: 00: 49.616: V /> & gt; & Gt; (1988): Build: Google, Timeline Manager Category Notfound 04-26 08: 00: 49.616: V /> gt; & Gt; Glass 1 But on the Nexus tablet it will be:
04-26 08: 19: 27.128: V /> gt; & Gt; (23528): Timeline Manager category Notfound 04-26 08: 19: 27.128: V /> gt; & Gt; (23528): LiveCard Classroom Notfound 04-26 08: 19: 27.128: V / >> gt; & Gt; (23528): Build: Ace, Nexus 7
Comments
Post a Comment