i am new to android i have to perform some operation after every 30 min whether my application is running or not so i want to how to perform these operation using service and alarm manager any example or running will be helpfull
difference between RTC and RTC_WAKEUP in android
Asked Answered
here is complete answer : [#5938713 [1]: #5938713 –
Chthonian
Use RTC_WAKEUP if you want your service to perform some operation every 30 min as RTC_WAKEUP will wake the device up and deliver the pending intent. On the other hand RTC will deliver the intent only when the device wakes up.
what do you mean by weak_up ? when the screen turns on? –
Underplay
refer to sagar, what do you mean by weak_up ? when the screen turns on? –
Communism
@SagarNayak According this, google-developer-training.github.io/…, wake up mean wake up cpu. –
Holytide
@ShivamSharma According this, google-developer-training.github.io/…, wake up mean wake up cpu. –
Holytide
I think everything you need to know is in the docs on AlarmManager
There can be many pitfalls trying to keep the phone awake, also see cwac-wakeful by Mark Murphy on github
© 2022 - 2024 — McMap. All rights reserved.