Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Iv'e 构建的 android 应用程序,在这个应用程序中我想检查运行该应用程序的设备的 android 版本是什么,并采取相应的行动。有什么方法可以检查吗?
android.os.Build.VERSION
这提供了当前版本
if (android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.GINGERBREAD) { // 仅适用于姜饼和更新版本 }
I have an issue with using <object>. I need it to show different external pages, but it's not really working for me. It is like, after the first time I set Data, changing it does nothing. Do I need to ref
<object>