I am working on an app that runs as a service and waits for a message. After I check the log, I find out that Android kills and restarts many processes very often! This not only happens to my app, but is the same for many other services.
I cannot see any reason for this and my device has enough memory. I test with a Sony Xperia S running Android 4.0.4. Is this normal or a bug?
Here is a part of the log to show you what I mean:
02-04 15:02:38.791 320 332 I ActivityManager: Process com.android.email (pid 32763) has died. 02-04 15:02:38.791 320 332 W ActivityManager: Scheduling restart of crashed service com.android.email/.service.MailService in 5000ms
.... and 13 minutes later :
02-04 15:15:32.601 320 694 I ActivityManager: Process com.android.email (pid 1453) has died.