how to get the android phone model, version, sdk details?

前端 未结 5 2029
感情败类
感情败类 2021-01-30 11:03

how to get the android phone model, version, sdk details?

5条回答
  •  一生所求
    2021-01-30 11:16

    First of all, have a look at these "Build" class at android-sdk page: http://developer.android.com/reference/android/os/Build.html.

    // Device model
    String PhoneModel = android.os.Build.MODEL;
    
    // Android version
    String AndroidVersion = android.os.Build.VERSION.RELEASE;
    

提交回复
热议问题