獲取手機裝置 資訊

2021-07-26 23:31:16 字數 1538 閱讀 1704

//手機序列號

nsstring* identifiernumber = [[uidevice currentdevice] uniqueidentifier];  

nslog(@"手機序列號: %@",identifiernumber);  

//手機別名: 使用者定義的名稱

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型別

2012-10-19 14:07:47.622 mydemo[5779:707] 手機序列號: 6685c75e34104be0b04c6ceb72985dc381f0f746  

2012-10-19 14:07:47.624 mydemo[5779:707] 手機別名: 「spring sky」的 ipod  

2012-10-19 14:07:47.627 mydemo[5779:707] 裝置名稱: iphone os  

2012-10-19 14:07:47.629 mydemo[5779:707] 手機系統版本: 5.1.1  

2012-10-19 14:07:47.641 mydemo[5779:707] 手機型號: ipod touch  

2012-10-19 14:07:47.642 mydemo[5779:707] 國際化區域名稱: ipod touch  

2012-10-19 14:07:47.643 mydemo[5779:707] 當前應用名稱:mydemo  

2012-10-19 14:07:47.645 mydemo[5779:707] 當前應用軟體版本:1.0.1 

獲取手機裝置資訊

displaymetrics displaymetrics new displaymetrics this.getwindowmanager getdefaultdisplay getmetrics displaymetrics int height displaymetrics.heightpix...

iOS 獲取手機裝置資訊

1,獲取裝置唯一識別符號 nsstring identifierstr uidevice currentdevice identifierforvendor uuidstring nslog 裝置唯一識別符號 identifierstr 裝置唯一識別符號 c2017f37 1c67 40a5 a35...

android 獲取手機裝置相關資訊

在開發中,會時不時的用到手機裝置相關資料,趁著現在有點時間,然後加上度娘一把,總結一下在開發中平時使用到相關手機裝置的資料,供之後開發便利 涉及到的有 手機sim卡資訊 備 method指的是對應下面的方法名 手機型號 螢幕尺寸大小 系統當前時間 sd卡是否存在 sd總空間和剩餘空間 網路相關狀態 ...