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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:33:28+00:00 2026-06-09T18:33:28+00:00

I have a request that an application prompt the user to update (if the

  • 0

I have a request that an application prompt the user to update (if the policy manager site says an update is available), and if they decline, prompt them again in N minutes. I have seen similar questions asked but when I tried to implement the code using handlers or timers, the activity is out of scope or a crash happens that I can’t quite figure out, the class I am using requires an application context and an activity to get out various string variables and do tasks.

So I would like to generalize the question as maybe I am thinking about it the wrong way:

What is the best way to schedule a prompt for an update that can either be cancelled and return the user to the activity they were on (and then scheduled run again in N minutes), or direct the user to a web site?

  • 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-09T18:33:30+00:00Added an answer on June 9, 2026 at 6:33 pm

    You should be using an AlarmManager with a PendingIntent and a BroadcastReceiver.
    You set the time with the alarm manager and give it a PendingIntent which you get by using the PendingIntent.getBroadcast method.
    1 of the params you give this method is the BroadcastReceiver class which would receive a call when the time is up where you can do pretty much anything you’d like, which would probably be starting a new activity in your case.

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

Sidebar

Related Questions

i have an Java J2ME application that does (at user request) create HttpConnections to
I have an Android application that connects to Facebook to request authorization of an
In my application I have a drop-down form that fires up an AJAX request
So I'm building a web application and I have an ajax request that pings
I have a flash application that needs to send a http request to the
In my GAE application, I have several request handlers that return JSON-formated response. When
I have noticed that while debugging my site, any request that results in a
I have an AJAX intensive application that requires sending multiple AJAX requests rapidly or
I have a Monodroid application that does many webrequests. I am making requests from
I have ajax request that do 3 missions: Save Model (DB) Send Email Give

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.