1

In my android studio there is only the Marshmallow 6.0 API. Can i create the app also run on jellybean API without downloading the API of Jellybean? Thank you

1 Answers1

1

Yes, you can develop an app that runs also on an older version of Android. You should define "Min SDK version" for the module appropriately. If your code uses APIs that are not available on JellyBean, it's your responsibility to see that these APIs are not called. You can check Build.VERSION.SDK_INT at runtime. It is nice to use TargetAPI annotations to avoid warnings about such code.

See also Writing backwards compatible Android code

Community
  • 1
  • 1
Alex Cohn
  • 56,089
  • 9
  • 113
  • 307