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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:40:46+00:00 2026-05-31T20:40:46+00:00

I am writing an android application, which communicates with server when the user logs

  • 0

I am writing an android application, which communicates with server when the user logs in to the application. Now if the user closes the application without logging out, I want to query the server every 15 minutes, to see whether the particular user has received any updates. If yes then, I want to push a notification, on clicking which the user goes straight into the applications activity which shows the update.

How can this be implemented in android? Is it possible?
Can anyone suggest solutions using timer? And please remember this background program should run only when the actual application is closed.

  • 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-31T20:40:47+00:00Added an answer on May 31, 2026 at 8:40 pm

    Yes, this is possible.

    I would do the following:

    1. Use AlarmManager with setRepeating. This will get you your 15 minute interval.

    2. In setRepeating, pass in a PendingIntent for an IntentService subclass

    3. In your IntentService subclass, in handleIntent, query your server then create a Notification like documented at http://developer.android.com/guide/topics/ui/notifiers/notifications.html

    4. The Notification will contain another PendingIntent which will bring the user back to your app. Make sure to specify the Activity that contains the UI that is relevant for that update.

    You can learn more about IntentServices in the Services Guide at http://developer.android.com/guide/topics/fundamentals/services.html

    You can learn more about AlarmManager at http://developer.android.com/reference/android/app/AlarmManager.html

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

Sidebar

Related Questions

We are writing an application for Android OS which communicates with a server to
Hi I am writing an Android application in which I want to retrieve the
I'm writing an Android application which requires the user to login. I have a
I am writing my android application, which I want to define a custom URI
I'm writing an android application which purpouse is to determine the user position via
I am writing an android application which uses a REST-based API on the server.
I'm writing an Android application that I want to be able to send requests
I am writing an Android application in which I'll have to create a video
I am writing an application which needs the user to enter some information into
I am writing an application which encrypts and decrypts the user notes based on

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.