-2

I have an activity that requires SDK but still want to make the rest of the app available for lower SDK versions. Is there a way of reading the users SDK to a string so I can place in an if statement please?

AesculusMaximus
  • 195
  • 3
  • 14

1 Answers1

2

Do you mean something like this?

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
    ... do stuff ...
    }
Vladimir Marton
  • 569
  • 4
  • 31