Google Glass SDK/Mirror API and Glassware
来源:互联网 发布:sql中references 编辑:程序博客网 时间:2024/05/02 00:26
We are actively working on a Glass Development Kit (GDK) that allows you to build Glassware in the form of APKs. We’re still hard at work on the GDK, but in the meantime, you can start designing and developing your awesome ideas with the existing Android SDK. Although you won’t have all the tools necessary to design the perfect experience for Glass, developing with the Android SDK lets you try out ideas while you wait for the GDK.
Glass is built on the Android 4.0.4 platform, so you can write APKs using the standard Android SDK (API Level 15) and sideload them onto Glass. The Android SDK provides you with a wide range of APIs to do things such as access the low-level hardware, render OpenGL, use stock Android UI widgets, and much more. You can even use the Android NDK to develop.
We encourage you to start developing APKs for Glass and experiment with what you can do. For more information on utilizing the Android platform and if you're adventurous, gaining root shell access, see the Void Your Warranty Google I/O session video.
Samples
All of our APK samples are available on GitHub and we will be adding more. 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:
CompassLevelStopwatch
PrerequisitesA good understanding of Android development. See the
Android developer training site for information on how to get started. Because Glass is built on the Android platform, you can use many Android resources that are already published for help.Android SDK - This is needed for development.Glass - You can push the code to an Android device or emulator but to design a real Glass experience, you need the actual device.
Importing and compiling the samples
Checkout the samples onto your filesystem and use your favorite IDE to import and compile the code.
In Eclipse and ADTClick
File > Import ... > Existing Android Code into Workspace.Click **Browse**, select the location of the apk-[sampleName]-sample/ directory, and click **OK**.Select the **apk-[sampleName]-sample** project to import it and select **Copy projects into workspace**.Click **Finish** to complete the import.
In Android StudioCheckout the sample to a location where you keep your Android development projects. A apk-[sampleName]-sample/ directory is created.Click
File > Import Project ..., select the location of the apk-[sampleName]-sample/ directory, and click **Next** until you see the **Finish** button.Click **Finish** to complete the import.
Turning on debug mode
You'll need to turn on debug mode before you do any type of development on Glass. Go to **Settings > Device Info > Turn on debug** to enable it.
Running the APK on Glass
You can use your IDE to compile, install, and run the APK or use adb on the command line:$ adb install -r [sampleName].apk
$ adb shell am start -n com.google.glass.samples.<sampleName>/.<MainActivityName>
1
**Note:** The Glass screen must be on when you run the APK.
- Google Glass SDK/Mirror API and Glassware
- 谷歌眼镜开发Mirror API之Glassware启动清单
- google glass
- Google Glass
- 谷歌眼镜Mirror API开发指南之Glass主题和UI控件
- Google Glass 初体验
- 创新产品 google glass
- 深入google glass
- Google Glass GDK公布
- Google Glass Developer 开发者
- 《Google Glass开发指南》
- Google Glass界面设计指南
- Google Glass 2.0
- Google Glass 开发
- android sdk mirror
- Android SDK Mirror
- Google Glass: 未来不遥远
- Google Glass界面设计指南分析
- java学习之路-----项目经验----关于maven项目之间的互相依赖
- Sqlite数据库报错——The database disk image is malformed
- Jaxb中java类的相关注解详解描述
- HTML5样式控制
- Oracle XE 安装时怎样转换成 ZHS16GBK
- Google Glass SDK/Mirror API and Glassware
- MSP430G2553串口通讯 发送接收
- GNU Toolchain —— (三)gdb 调试续
- fibnacci(1,1,2,3,5,8-----------------)
- 如题,请问在ios上 2048x2048的ATF 正常上传要多久?
- 有趣的冒泡排序实现
- java实体类
- SpringMVC的json转换及对Date类型的转换格式的处理
- MyEclipse10.0工程中引入Testng