Android获取手机的型号和系统版本
2017-03-26 17:04
309 查看
public void onCreate(Bundle
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView textView = (TextView) findViewById(R.id.text);
textView.setText("Product
Model: " + android.os.Build.MODEL + ","
+ android.os.Build.VERSION.SDK + ","
+ android.os.Build.VERSION.RELEASE);
}
注:android.os.Build.VERSION.RELEASE获取版本号
android.os.Build.MODEL 获取手机型号
savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView textView = (TextView) findViewById(R.id.text);
textView.setText("Product
Model: " + android.os.Build.MODEL + ","
+ android.os.Build.VERSION.SDK + ","
+ android.os.Build.VERSION.RELEASE);
}
注:android.os.Build.VERSION.RELEASE获取版本号
android.os.Build.MODEL 获取手机型号
相关文章推荐
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- 转:Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android 编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android获取手机型号,系统版本,App版本号等信息
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android获取手机型号,系统版本,App版本号等信息
- Android获取手机型号,系统版本,App版本号等信息
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- 获取Android手机型号,系统版本,App版本号等信息
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android安卓获取ID号,本机号码,手机型号,系统版本
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- android 获取手机型号,本机电话号码,SDK版本以及firmwarw版本号(即系统版本号)
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android获取手机型号,系统版本,App版本号等信息
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)
- Android编程获取手机型号,本机电话号码,sdk版本及firmware版本号(即系统版本号)