changed type of sdkversion to int

-avoids parsing to int
-removes deprecated warning in newer Android SDK Versions