3

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:

enter image description here

How can I achieve this?

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
Leo
  • 1,947
  • 2
  • 20
  • 37

1 Answers1

3

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

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
M.Fooladgar
  • 374
  • 1
  • 4
  • 17