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 8011397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:00:20+00:00 2026-06-04T19:00:20+00:00

I have now spent 2 days trying to get this going. I am however

  • 0

I have now spent 2 days trying to get this going. I am however completely bamboozled. Individually I have successfully got all the tasks working but I have NO idea how to go about the next part.

Please someone create the steps and simplify the tasks only. I don’t need the code (trying to save you time). I need to know HOW this can be achieved.

  1. Every 5/10/15/20/30/60 minutes (according to user preference in app), updates will be checked online receiving a number (number of updates since last check).

  2. Even when the app is terminated, I am hoping this can run as a service so updates are still checked (if that’s how it works)

  3. Since looking into handler/timer/service/alarmmanager, I am really confused with this now so I also need to know the best way to achieve this.

So, could someone put it thus:

  1. In ‘name’ activity, add the following code: …
  2. Create ‘such’ file, adding etc etc in the manifest
  3. In this part of the code, add your online check code
  4. Put your status bar notify code here
    and so on…

I think the problem is I read way too much with peoples issues on SOF and got confused.

Truly appreciated.

  • 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-06-04T19:00:21+00:00Added an answer on June 4, 2026 at 7:00 pm

    You should use the Handler for timing while application is running and AlarmManager otherwise. For simplicity you could use the latter for both tasks using this API:

    public void setRepeating (int type, long triggerAtTime, long interval, PendingIntent operation)
    

    I found an example in this blog post. An excerpt:

    1. Create a new PendingIntent with it’s getBroadcast() method.
    2. Create an alarm using method above of AlarmManager.
    3. Create a BroadcastReciever and register it in AndroidManifest.xml as described in the Developer Guide.
    4. Check for updates in onReceive method of BroadcastReceiver.

    Alternatively you could create an Activity:

    1. First time it’s started schedule an alarm but use getActivity method for intent instead and pass your activity class to it.
    2. On subsequent runs check for updates.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've spent two days on this and have gotten nowhere. I'm trying to use
I've spent the last 2 days trying to figure this out, basically I have
I have spent the past couple of days working on this and am going
Okay I have spent the last 2 days trying to sort this one out.
I have spent at least 2 weeks now trying to find out how to
I have been struggling with this problem for a few days now and I
I recently spent days trying to get my .htaccess to rewrite URLs, of which
I have spent about 2 Days trying to find out how to make 3d
I have spent 3 days & 4 SO questions trying to fix something which
So, I've been trying to get this page working for a couple of days

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.