How do I get my phone model number?

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

enter image description here

How can I achieve this?

+3


source to share


1 answer


you can use

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

      



Here's an example here . Hope this is helpful

+3


source







All Articles