Detect Google Glass Programmatically
问题 From a native application how can we detect Google Glass verses a smart phone from code? Moving correct answer to question: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build.MODEL.startsWith("Glass"); } 回答1: Another way of doing this would be to use the Build API: http://developer.android.com/reference/android/os/Build.html 回答2: Using the GDK, you could use: boolean isRunningOnGlass() { return "Google".equalsIgnoreCase(Build.MANUFACTURER) && Build