difference between RTC and RTC_WAKEUP in android
Asked Answered
C

2

11

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

Curtiscurtiss answered 10/5, 2012 at 10:4 Comment(1)
here is complete answer : [#5938713 [1]: #5938713Chthonian
A
21

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.

Appenzell answered 10/5, 2012 at 10:14 Comment(4)
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
B
0

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

Beauchamp answered 10/5, 2012 at 10:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.