How to get model number of the phone?

一曲冷凌霜 提交于 2019-12-23 16:07:03

问题


I am targeting Android with Delphi XE7. I would like to obtain the model number of the phone. That is, I would like to obtain the information highlighted in this image:

How can I achieve this?


回答1:


You can use

DeviceType := JStringToString(TJBuild.JavaClass.MODEL);
OSName := GetCodename(JStringToString(TJBuild_VERSION.JavaClass.RELEASE));
OSVersion := JStringToString(TJBuild_VERSION.JavaClass.RELEASE);

There is a sample here. I hope it'll be useful



来源:https://stackoverflow.com/questions/30591698/how-to-get-model-number-of-the-phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!