I want to use this line:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
But Delphi 10 does not understand this code. Did I forget to put a command in the uses
clause?
I tried:
FMX.Platform.Android, Androidapi.helpers,
Androidapi.JNI.GraphicsContentViewText,
Android.Provider.Setting.System, FMX.Helpers.Android
But none of them resolves my problem.
Can anyone help me with this problem?