/*
獲取手機資訊
應用程式的名稱和版本號等資訊都儲存在mainbundle的乙個字典中,用下面**可以取出來
*/nsdictionary* infodict =[[nsbundle mainbundle] infodictionary];
nsstring* versionnum =[infodict objectforkey:@"cfbundleversion"];
nsstring * strmodel = [uidevice currentdevice].model ;
nslog(@"%@",strmodel);
//手機別名: 使用者定義的名稱
nsstring* userphonename = [[uidevice currentdevice] name];
nslog(@"手機別名: %@", userphonename);
//裝置名稱
nsstring* devicename = [[uidevice currentdevice] systemname];
nslog(@"裝置名稱: %@",devicename );
//手機系統版本
nsstring* phoneversion = [[uidevice currentdevice] systemversion];
nslog(@"手機系統版本: %@", phoneversion);
//手機型號
nsstring* phonemodel = [[uidevice currentdevice] model];
nslog(@"手機型號: %@",phonemodel );
//地方型號 (國際化區域名稱)
nsstring* localphonemodel = [[uidevice currentdevice] localizedmodel];
nslog(@"國際化區域名稱: %@",localphonemodel );
nsdictionary *infodictionary = [[nsbundle mainbundle] infodictionary];
// 當前應用名稱
// 當前應用軟體版本 比如:1.0.1
// 當前應用版本號碼 int型別
獲取手機應用資訊
systemutils.j a工具類 j a package com.techrare.utils import j a.util.arraylist import j a.util.list import android.content.context import android.content...
獲取手機裝置資訊
displaymetrics displaymetrics new displaymetrics this.getwindowmanager getdefaultdisplay getmetrics displaymetrics int height displaymetrics.heightpix...
獲取手機基本資訊
獲取手機基本資訊 telephonymanager tm telephonymanager context.getsystemservice context.telephony service 注意在androidmanifest中新增許可權 string mobile tm.getline1num...