Android Question Android crashes at midnight

gezueb

Active Member
Licensed User
Longtime User
I have made an app that counts pulses from a electrical power meter (with camera2 lib) and searches for surges. Each time at midnight, Android stops working (black screen) and must be cold started. The app uses datetime functions to determine start and stop hour for measurements. It works perfectly during daytime, no heat problem. And Android does not stop if app is not running. App uses phonewakestate keep_alive.
Has anyone seen this too and even better: has a cure for it?
 
Last edited:

gezueb

Active Member
Licensed User
Longtime User
Solved. My fault. The power adapter was not feeding enough current for the highly consuming app, so the battery of the phone ran down. Solution: attached the phone to a fat iPad power adapter (2A).
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Solved. My fault. The power adapter was not feeding enough current for the highly consuming app, so the battery of the phone ran down. Solution: attached the phone to a fat iPad power adapter (2A).
And the power runs empty at exactly midnight like you mentioned in #1?
 
Upvote 0

gezueb

Active Member
Licensed User
Longtime User
No, sorry Don, it was black soon after midnight (I was sleeping before, not watching). See my second post above. Thanks anyway!
 
Upvote 0
Top