1. 获取手机型号:
String model= android.os.Build.MODEL;
2. 获取手机厂商:
String carrier= android.os.Build.MANUFACTURER;
3.获取当前应用的版本号和当前android系统的版本号
private String getVersionName() throws Exception
{
// 获取packagemanager的实例
PackageManager packageManager = getPackageManager();
// getPackageName()是你当前类的包名,0代表是获取版本信息
PackageInfo packInfo = packageManager.getPackageInfo(getPackageName(),0);
String version = packInfo.versionName;
return version;
}
4.获取当前[系统]的版本号
textView.setText("Product Model: " + android.os.Build.MODEL + ","
+ android.os.Build.VERSION.SDK + ","
+ android.os.Build.VERSION.RELEASE)
Android - 跳转到应用商店进行应用打分功能实现
地址:https://blog.csdn.net/mythmayor/article/details/80279279