1.获取当前系统的版本号:
textView.setText("Product Model: " + android.os.Build.MODEL + "," + android.os.Build.VERSION.SDK + "," + android.os.Build.VERSION.RELEASE);
或者:
int
currentapiVersion=android.os.Build.VERSION.SDK_INT;