I\'m not new to Android and I\'m well used to the version handling and how to condition it, but when I see this it troubles me...
// Check if we\'re running
Well in that case use this
// Check if we're running on Android 5.0 or higher if (Build.VERSION.SDK_INT >= 21) { // Call some material design APIs here } else { // Implement this feature without material design }
Build.VERSION_CODES.LOLLIPOP = 21