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");
}
Another way of doing this would be to use the Build API:
http://developer.android.com/reference/android/os/Build.html