Background: I am making my app with minimum API level 17.
I was looking up ways to get the size of the file system and saw this:
http://developer.android.com/reference/android/os/StatFs.html
However, a lot of the newer functions are only available in API level 18 upward, and the older versions are now deprecated.
How might I correctly use something like http://developer.android.com/reference/android/os/Build.VERSION.html to say, "If the user's API level is 17, use the deprecated version of these functions, but if API level is 18+, use the newer versions of these functions"? Would I need to use the deprecation annotation somehow?