简体   繁体   English

Android:如何检测用户是否正在运行6.0.1,而不是6.0

[英]Android: How to detect if a user is running 6.0.1, not 6.0

I am developing an Android app which uses many of the new Unicode Emoji. 我正在开发一个使用许多新的Unicode表情符号的Android应用程序。 I have tested the app on both Android 6.0 and 6.0.1, and I have discovered that because the app uses the new emoji and only 6.0.1 supports the new emoji, that the app doesn't work on Android 6.0. 我已经在Android 6.0和6.0.1上测试了该应用程序,但我发现由于该应用程序使用新的表情符号,而只有6.0.1支持新的表情符号,因此该应用程序无法在Android 6.0上运行。

I would like to set the minimum SDK version to 6.0.1, but there is no way to differentiate 6.0 and 6.0.1 since both are SDK level 23. 我想将最低SDK版本设置为6.0.1,但是由于两者均为SDK级别23,因此无法区分6.0和6.0.1。

Is there a way to detect if a user is running 6.0.1, not 6.0? 有没有一种方法可以检测用户是否正在运行6.0.1,而不是6.0?

I would hope that all devices that once had 6.0 have been upgraded to 6.0.1 by now. 我希望所有曾经具有6.0的设备现在都已升级到6.0.1。

That being said, you can try examining Build.VERSION.RELEASE , though some manufacturers might tinker with this. 话虽如此,您可以尝试检查Build.VERSION.RELEASE ,尽管某些制造商可能会对此进行修改。

Check android.os.Build.VERSION . 检查android.os.Build.VERSION

  • RELEASE : The user-visible version string. RELEASE :用户可见的版本字符串。 Eg, "1.0" or "3.4b5". 例如,“ 1.0”或“ 3.4b5”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Qr代码扫描程序没有在android 6.0.1中运行(显示白屏) - Qr code scanner not running in android 6.0.1 (showing white screen) Android Marshmallow 6.0,检查后台正在运行的应用程序 - Android Marshmallow 6.0 , check running app in background setOnItemClickListener在android 6.0.1中不起作用 - setOnItemClickListener not working in android 6.0.1 如何检测用户在 Android 中离开或打开主屏幕 - How to detect that user is leaving or opening homescreen in Android 如何使用android 6.0.1在2013 nexus 7上添加sockethandler到logcat? - How to add a sockethandler to logcat on a 2013 nexus 7 with android 6.0.1? 当应用程序在后台运行时,如何检测用户何时粘贴内容? - How to detect when user pastes something when application is running in the background? 如何使用在 Windows 上运行的 Java 服务检测用户活动? - How to detect user activity with a Java service running on Windows? 在我的android工作室中没有android 6.0.1 - No android 6.0.1 in my android studio 如何以编程方式检测是否有任何屏幕录制进程/应用程序在 Android 中运行? - How to programmatically detect if any screen recording process/app is running in Android? 如何检测正在运行的JDK - How to detect running JDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM