What type of service in Android will use more system resources

It would be better to have a service that constantly starts the timer and performs a task every five seconds. Or would it be more efficient for the alarm manager to start the service every five seconds? How about every second? I am interested to hear your answers. Thank!

+3
source share
1 answer

According to the AlarmManager documentation , this is only for cases when you want to start at a specific time. What are you saying, you will want to use a handler with postDelayed ().

. , , . (, ..) .

+2

All Articles