简体   繁体   中英

How to make restarting time in service become faster?

I have created some services in my android application. I put start_sticky in them, but if the task killer killed my application, my service is restarting but it takes a long time.. Does anyone know how to decrease the restarting time when a service is restarted? or make a service become not restarted even if the task killer killed an application? thanks.

it takes about 1 minute for restarting that service.. and about 2 second for open that application..

That's a big difference.

I don't know what the answer is, but you may be able to track the cause of the slowness down by profiling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM