How can I check in code the Android version like 1.5 or 1.6

后端 未结 5 491
慢半拍i
慢半拍i 2020-12-15 07:12

I need to check in code what Android release version is running currently on target device. Can you supply code example?

5条回答
  •  春和景丽
    2020-12-15 08:15

    I think this is a duplicate of my own question: ndk version at run time. Short answer: no easy way for a native application to do it (you could however run a Java app and communicate with it to get the version).

提交回复
热议问题