Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:25:45+00:00 2026-05-23T20:25:45+00:00

I need a service to start at boot that periodically checks some database for

  • 0

I need a service to start at boot that periodically checks some database for newly posted data. If there is new data(that fits the correct parameters) I need to then start an activity to display this. I plan on having a notification in-between this to allow the user the choice of dismissing the new data, if they are uninterested or in the middle of some other task. I have some php on a server that I am using to query the database, it works but it is in an activity. I have read a lot on here about alarmManagers and broadcast receivers. I think I need a broadcast receiver that starts on boot, that will start the service that will check for updates, then start the activity if there are.

Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:25:46+00:00Added an answer on May 23, 2026 at 8:25 pm

    To get a start with broadcast receiver take a look here for example.

    Get the service implemented. Take a look at IntentService. It offloads the work into a worker thread, so you don’t need to care about that yourself.

    Schedule the service to start itself periodically using AlarmManager. Don’t forget about wake lock to wake the device if needed.

    It is usually not a good idea to start any activities without user consent. Show a notification in the notification bar that some new data is available. When user taps on the notification you start the activity to show the data.

    There is more to that you just have to start step by step and make it happen 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I start an android service manually which does some data collection work. Suppose if
i need an sms service that can gives me a phone number and then
I need to create a service in .NET that maintains (inner) state in-memory, spawns
I need to create a service that will be called back by a third
I need to host a WCF service in IIS that exposes a wsHttpBinding. That
I have a windows service that reads from a config file. I need to
I have an update service that starts at boot. The thing is I want
I would like to start a new instance of a wcf service host from
I need to start a notification service for an application when the device boots.
I am creating an application that is supposed to start a service which should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.