Pat*_*ick 7 google-glass google-gdk
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");
}
Run Code Online (Sandbox Code Playgroud)