I'm developing the app, which is supposed to be active all the time on the device (customer-specific app). The application isn't big, it doesn't use a lot of resources, but it works with scheduling (handlers, timers, AlarmService).
And it happens, that customer reports the device reboots by itself from time to time (once in a day or more rarely). I don't know the reason. Unfortunately, I don't have any logs related to shutting down of the devices.
In "onCreate" method, I start logcat process and write all logs into a file, but there are nothing useful. Yes, I know, it's hard to find a reason without them. I'm trying to capture as much information as i can.
There are also 2 services, that runs every ±1hour, one pull the data from the git (JGit lib) and another sends some messages to the server. We also have logging for developers (write to a file), and we use only one instance of FileWriter (so we don't close it). Could you suggest, what CAN possibly be the cause of rebooting? What is common mistakes in such apps? How can I find the reason of rebooting.
Yes, I know, I didn't provide enough information, but any advices would be really helpful for me.