Created
September 24, 2014 08:14
-
-
Save tobrun/5226aa01439974ffcc4d to your computer and use it in GitHub Desktop.
Handle Deprecated API Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int sdk = android.os.Build.VERSION.SDK_INT; | |
if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) { | |
setBackgroundDrawable(); | |
} else { | |
setBackground(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment