How can you make a method with some versions each for a different API level. I think it’s something like this, but I’m not sure
@apilevel("11")
private void getR()
{
...
}
@apilevel("4")
private void getR()
{
...
}
What is the correct way to do this? Thanks in advance
You may use:
For reference you may like to check here: http://developer.android.com/reference/android/os/Build.VERSION.html#SDK
And for the levels themselves here is the list: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html