removing deprecated warning caused by an AndroidSDK constant

Build.VERSION.SDK is an deprecated constant of the AndroidSDK instead using the constant Build.VERSION.SDK_INT.

Also changed the JUnit test frame as getSdkVersion() now returns an int instead of an String.

Also there was an unused local variable so there are more deletions than additions.