Yes, this will work.
The reason for this is that android.os.Build.VERSION_CODES.HONEYCOMB
is an int
. android.os.Build.VERSION_CODES.HONEYCOMB
is just an alias (the int
equals 11
) for 11
, as can be seen in an IDE such as Eclipse:
int android.os.Build.VERSION_CODES.HONEYCOMB = 11 [0xb]
So this will work as it'll just check if the android.os.Build.VERSION.SDK_INT
is greater than or equal to 11.