can an android application check the version of the phone
<p>I would like to write an application that uses live wallpapers for insatnce. this feature is supported only in version 7 and up. Is it posiible, that the application checks the version of the android phone and depending on that runs different code (e.g. uses live wallpaper or static background.)</p>

<p>Do you have a code example for that? Does that require special permissions?</p>
