<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=CS link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>I can not find out, how to recall simple form of ignore battery optimisation Android build in dialog. I do not want The complex dialog which consistsof many items such as list of allowed apps.</p><p class=MsoNormal> Java developers of Termux Android application have made The following code to recall simple form of ignore battery optimisations dialog window build in to Android SYSUI.</p><p class=MsoNormal>Here is The corresponding Java code to recall this dialog window.</p><p class=MsoNormal> String packageName = getPackageName();</p><p class=MsoNormal> if (!pm.isIgnoringBatteryOptimizations(packageName)) {</p><p class=MsoNormal> Intent whitelist = new Intent();</p><p class=MsoNormal> whitelist.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);</p><p class=MsoNormal> whitelist.setData(Uri.parse("package:" + packageName));</p><p class=MsoNormal> whitelist.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Code become from termuxservice.java module.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>COuld somebody of us would find The way how to recall this dialog by using Pascal language, Pandroid package and AndroidR25.INC Api header files?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you very very much for yours help. Sure! It is possible to recall complex ignore battery optimisation dialog from Android settings, but I do not want this dialog window to be used.</p><p class=MsoNormal>Thank you for yours programmers help.</p></div></body></html>