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. 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. Here is The corresponding Java code to recall this dialog window. String packageName = getPackageName(); if (!pm.isIgnoringBatteryOptimizations(packageName)) { Intent whitelist = new Intent(); whitelist.setAction(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS); whitelist.setData(Uri.parse("package:" + packageName)); whitelist.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Code become from termuxservice.java module. 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? 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. Thank you for yours programmers help. |
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal