简体   繁体   English

如何使Google Cardboard VR / AR应用程序同时适用于Google Cardboard和Google Glass?

[英]How can I make my google cardboard VR/AR application work for both Google Cardboard and Google Glass?

I have developed an android application for Google cardboard which uses cardboard library. 我已经开发了使用硬纸板库的Google硬纸板android应用程序。 Now, I want to get it worked for both Google glass and Google cardboard. 现在,我想让它适用于Google玻璃和Google纸板。

As soon as i launch application, it should detect the device and work accordingly. 一旦启动应用程序,它就应该检测到设备并相应地工作。

Please Help !!! 请帮忙 !!!

You might define and use this function to determine if your code is running on Google Glass 您可能定义并使用此函数来确定您的代码是否正在Google Glass上运行

boolean isRunningOnGlass() {
     return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build.MODEL.startsWith("Glass");
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM