Gaurang Devmurari
Gaurang Devmurari

Reputation: 11

Timer can not run in application run in background

I am using timertask implemented in overall application using extends Application calss and timer tick every second and timer will work perfect but whenever i am run the application in background and see the log the timer run successfully but some time it will stop for execution. so how to do for run timer continue in background application running in continue?.

Upvotes: 0

Views: 66

Answers (1)

MyDogTom
MyDogTom

Reputation: 4606

You need acquire PARTIAL_WAKE_LOCK. Do not forget to release.

Upvotes: 1

Related Questions