문제

Suppose, my phone has lot of memory and a service is executed on event of something. It completes its task and returns START_STICKY. Will it continue to run in background because it returns START_STICKY.

My assumption is NO because START_STICKY is only considered if the service terminates on event of low memory and not in event of service completion.

도움이 되었습니까?

해결책

The service continues running until Context.stopService() or stopSelf() is called.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top