Online search, recorded after the use of convenience:
[Java]
Phone serial number
nsstring* identifiernumber = [[Uidevice currentdevice] uniqueidentifier];
NSLog (@ "Mobile serial number:%@", identifiernumber);
Phone aliases: User-defined names
nsstring* userphonename = [[Uidevice currentdevice] name];
NSLog (@ "phone alias:%@", userphonename);
Device Name
nsstring* devicename = [[Uidevice currentdevice] systemName];
NSLog (@ "Device name:%@", devicename);
Mobile phone system version
nsstring* phoneversion = [[Uidevice currentdevice] systemversion];
NSLog (@ "mobile phone system version:%@", phoneversion);
Phone model
nsstring* Phonemodel = [[Uidevice currentdevice] model];
NSLog (@ "mobile phone Model:%@", Phonemodel);
Local model (internationalized region name)
nsstring* Localphonemodel = [[Uidevice currentdevice] Localizedmodel];
NSLog (@ "internationalized Zone Name:%@", Localphonemodel);
Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
Current app Name
NSString *appcurname = [infodictionary objectforkey:@ "Cfbundledisplayname"];
NSLog (@ "Current application name:%@", appcurname);
Current application version such as: 1.0.1
NSString *appcurversion = [infodictionary objectforkey:@ "cfbundleshortversionstring"];
NSLog (@ "Current application software version:%@", appcurversion);
Current app version number int type
NSString *appcurversionnum = [infodictionary objectforkey:@ "cfbundleversion"];
NSLog (@ "Current application version number:%@", appcurversionnum);
Phone serial number
nsstring* identifiernumber = [[Uidevice currentdevice] uniqueidentifier];
NSLog (@ "Mobile serial number:%@", identifiernumber);
Phone aliases: User-defined names
nsstring* userphonename = [[Uidevice currentdevice] name];
NSLog (@ "phone alias:%@", userphonename);
Device Name
nsstring* devicename = [[Uidevice currentdevice] systemName];
NSLog (@ "Device name:%@", devicename);
Mobile phone system version
nsstring* phoneversion = [[Uidevice currentdevice] systemversion];
NSLog (@ "mobile phone system version:%@", phoneversion);
Phone model
nsstring* Phonemodel = [[Uidevice currentdevice] model];
NSLog (@ "mobile phone Model:%@", Phonemodel);
Local model (internationalized region name)
nsstring* Localphonemodel = [[Uidevice currentdevice] Localizedmodel];
NSLog (@ "internationalized Zone Name:%@", Localphonemodel);
Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
Current app Name
NSString *appcurname = [infodictionary objectforkey:@ "Cfbundledisplayname"];
NSLog (@ "Current application name:%@", appcurname);
Current application version such as: 1.0.1
NSString *appcurversion = [infodictionary objectforkey:@ "cfbundleshortversionstring"];
NSLog (@ "Current application software version:%@", appcurversion);
Current app version number int type
NSString *appcurversionnum = [infodictionary objectforkey:@ "cfbundleversion"];
NSLog (@ "Current application version number:%@", appcurversionnum);
Results:
[Plain]
2012-10-19 14:07:47.622 mydemo[5779:707] Phone serial number: 6685c75e34104be0b04c6ceb72985dc381f0f746
2012-10-19 14:07:47.624 mydemo[5779:707] Phone alias: "Spring Sky" iPod
2012-10-19 14:07:47.627 mydemo[5779:707] Device name: IPhone OS
2012-10-19 14:07:47.629 mydemo[5779:707] Phone system version: 5.1.1
2012-10-19 14:07:47.641 mydemo[5779:707] Phone model: IPod Touch
2012-10-19 14:07:47.642 mydemo[5779:707] Internationalization zone name: IPod Touch
2012-10-19 14:07:47.643 mydemo[5779:707] Current application name: Mydemo
2012-10-19 14:07:47.645 mydemo[5779:707] Current application software version: 1.0.1
2012-10-19 14:07:47.646 mydemo[5779:707] Current application version number: 101
2012-10-19 14:07:47.622 mydemo[5779:707] Phone serial number: 6685c75e34104be0b04c6ceb72985dc381f0f746
2012-10-19 14:07:47.624 mydemo[5779:707] Phone alias: "Spring Sky" iPod
2012-10-19 14:07:47.627 mydemo[5779:707] Device name: IPhone OS
2012-10-19 14:07:47.629 mydemo[5779:707] Phone system version: 5.1.1
2012-10-19 14:07:47.641 mydemo[5779:707] Phone model: IPod Touch
2012-10-19 14:07:47.642 mydemo[5779:707] Internationalization zone name: IPod Touch
2012-10-19 14:07:47.643 mydemo[5779:707] Current application name: Mydemo
2012-10-19 14:07:47.645 mydemo[5779:707] Current application software version: 1.0.1
2012-10-19 14:07:47.646 mydemo[5779:707] Current application version number: 101