I have developed an android application for Google cardboard which uses cardboard library. Now, I want to get it worked for both Google glass and Google cardboard.
我开发了一个使用纸板库的Google纸板的Android应用程序。现在,我想让它适用于Google Glass和Google cardboard。
As soon as i launch application, it should detect the device and work accordingly.
一旦我启动应用程序,它应该检测设备并相应地工作。
Please Help !!!
请帮忙 !!!
1 个解决方案
#1
0
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");
}
#1
0
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");
}