Translations:Android Training/Supporting Different Platform Versions/7/en

From Android Wiki
Jump to navigation Jump to search

Check System Version at Runtime[edit source]

Android provides a unique code for each platform version in the Build constants class. Use these codes within your app to build conditions that ensure the code that depends on higher API levels is executed only when those APIs are available on the system.