I have a program that, using as a basis the gps reading indicated by Erel, records the gps position every 60 seconds on a local log file
After several hours of proper operation, and only on some phones (same phone brand/model, on all Android 10, on all same sim/telephone operator) , the app suddenly shuts down
I read on some articles that it could be the intervention of the s.o. which detects programs that are consuming too many resources and brutally shuts down without asking anyone's
permission
So the question is: how to (if possible), from app code, to understand if the closing command is given by the operating system?
If it is not possible to understand from the app code who is killing me, is there the possibility of monitoring from a third party program which apps have been killed by the s.o.?
After several hours of proper operation, and only on some phones (same phone brand/model, on all Android 10, on all same sim/telephone operator) , the app suddenly shuts down
I read on some articles that it could be the intervention of the s.o. which detects programs that are consuming too many resources and brutally shuts down without asking anyone's
permission
So the question is: how to (if possible), from app code, to understand if the closing command is given by the operating system?
If it is not possible to understand from the app code who is killing me, is there the possibility of monitoring from a third party program which apps have been killed by the s.o.?