Maybe `int` should be `Build.VERSION_CODE` instead ? See comment below :).