在*.h头文件中加入
#include <Androidapi.JNI.GraphicsContentViewText.hpp>
#include <FMX.Helpers.Android.hpp>
在*.cpp文件中写入
void __fastcall TForm1::Button1Click(TObject* Sender)
{
Androidapi::Jni::Graphicscontentviewtext::JDisplay *Display;
Display = GetJDisplay();
Edit1->Text = String(Display->getWidth());
Edit2->Text = String(Display->getHeight() );
}