• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Checking My Methodology

JXWD

Lurker
Jun 18, 2019
8
1
Hi all just wan to check I am on the right path...

I want to poll a web server every 5 minutes and create an alert depending on the outcome...

Method:
Use a background Service which is loaded on boot and has an empty screen
Use alarm manager to call the BroardcastReciever
Use OkHttp in the receiver to open webpage and see if there are any messages...


Obviously I don't want to annoy people by wasting more power than necessary.

Thanks -Hagen
 
  • Like
Reactions: glincoln8640

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones