Joke Collection Website - Blessing messages - Androidservice is started. Under what circumstances will it be started?
Androidservice is started. Under what circumstances will it be started?
Android system has its own set of methods for memory management. In order to ensure the orderly and stable operation of the system, the system will automatically allocate and control the memory usage of the program. When the system feels that the current resources are very limited, in order to ensure that some high-priority programs can run, it will kill some programs or services that it considers unimportant to release memory. This will ensure that programs that are really useful to users will still run again. If this happens to your service, it is likely to be killed first. But if you increase the priority of the service, you can make it stay a little longer. We can use setForeground(true) to set the priority of the service.
The service started by default is marked as background, and the currently running activity is generally marked as background, which means that if you set a background for the service, it will have a higher priority similar to the running activity. This does not guarantee that your service will never be killed, but it only improves its priority.
- Previous article:Why did my friend loans overdue send me a message?
- Next article:How to pay the arrears by SMS from China Bank?
- Related articles
- How long does it take to receive a car violation message?
- How to cancel the SMS service fee of China Construction Bank?
- How to make the background transparent
- Where is the mobile evaluation courtesy displayed?
- My ex-girlfriend ignored me. What should I do?
Hello, everyone, I am the answer week of the main question, and I am very happy to answer your questions. If an ex-girlfriend ignores you, we shoul
- How to thank others for their blessings when the baby is born?
- How do quarantined people access their status?
- China Merchants Credit Card sends SMS to verify identity.
- How does iphone change SMS ringtones?
- Is Hongxing Jiayuan in Pingcheng District of Datong City a high-risk area?