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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:17:00+00:00 2026-05-19T00:17:00+00:00

I have registered my app to send a broadcast at some particular time using

  • 0

I have registered my app to send a broadcast at some particular time using the alarm manager, and have set a receiver to listen to that broadcast.

Now there can be 2 cases:

  1. The OS feels there is a memory crunch and removes the app from the background. The android documentation says that the OS will ensure that my receiver receives my broadcast. Is it true ? How can I test such case ?
  2. A user decides to close my app using any task killer. Will I receive broadcast in such case too ? If not then is there any way to handle such case ?
  • 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-19T00:17:01+00:00Added an answer on May 19, 2026 at 12:17 am

    The OS feels there is a memory crunch and removes the app from the background.

    Your receiver will not be in memory anyway. Your receiver for use with AlarmManager should be registered in the manifest, and those receivers live only as long as it takes for onReceive() to run.

    Is it true ?

    Yes.

    How can I test such case ?

    Every test will test this case, if your receiver is registered in the manifest.

    A user decides to close my app using any task killer. Will I receive broadcast in such case too ?

    On Android 2.1 and earlier, no. Task killers there also eliminate scheduled alarms.

    If not then is there any way to handle such case ?

    Not really, which is why this was eliminated with Android 2.2.

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

Sidebar

Related Questions

No related questions found

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.