检测Android N版本代码 [英] Detect Android N version code
本文介绍了检测Android N版本代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以检测用户是否正在运行Android N?
Is it possible to detect if an user is running Android N?
我有一个带有Android N开发人员预览版的Nexus 6.如果我尝试使用 Build.VERSION.SDK_INT
获取构建版本,它将返回23,它等于Android棉花糖.
I have a Nexus 6 with the Android N Developer Preview. If I try to get the build version with Build.VERSION.SDK_INT
, it returns 23 which is equal to Android Marshmallow.
推荐答案
查看全文