![](/img/trans.png)
[英]Is there a way to tell at run-time what API level an Android device is running?
[英]Android: Is there a way to tell what device your app is running on
我的應用在新的Samsung Galaxy智能手機上崩潰了。 我想知道是否有辦法檢測這些手機是否正在運行? (因此,Galaxy手機不會運行導致它們崩潰的代碼,而其余的智能手機將運行它)
android.os.Build
包中有許多常量可以幫助您尋找所需的內容。 特別是有一個MODEL
常量,它引用產品的名稱。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.