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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:15:49+00:00 2026-06-03T18:15:49+00:00

OK so I have searched and searched, but can’t seem to find a reference

  • 0

OK so I have searched and searched, but can’t seem to find a reference that declares that this shouldn’t be possible. Basically what I want to accomplish in my app is to allow the user to register or unregister the broadcast receiver for ACTION_BOOT_COMPLETED.

I try registering it using the code below, but no dice. If I add it to the manifest then I can recieve the events, but with no way to turn it off (from what I can tell). Is there no way to register and unregister a receiver for ACTION_BOOT_COMPLETED?

    IntentFilter bootFilter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);
    mBootCompleted = new BootBroadcastReceiver();
    registerReceiver(mBootCompleted, bootFilter);
  • 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-03T18:15:51+00:00Added an answer on June 3, 2026 at 6:15 pm

    Basically what I want to accomplish in my app is to allow the user to register or unregister the broadcast receiver for ACTION_BOOT_COMPLETED.

    Step #1: Put a <receiver> in the manifest with an <intent-filter> for the BOOT_COMPLETED broadcast

    Step #2: Enable or disable the component as needed from your application, using PackageManager and setComponentEnabledSetting(), based upon whether or not it will be needed for the next boot

    Step #3: There is no step #3

    I try registering it using the code below, but no dice.

    Of course. In this plane of existence, time proceeds in a linear fashion, always going forward (modulo a TARDIS or appropriately-outfitted DeLorean). By the time you execute the code you show, the boot will have been completed, and there will be no further boot broadcasts until your code is no longer running (because the device has been rebooted).

    If I add it to the manifest then I can recieve the events, but with no way to turn it off (from what I can tell).

    See the recipe at the top of my answer.

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

Sidebar

Related Questions

I have searched quite thoroughly on this but can't seem to find an answer.
I have searched about this but can't seem to find exactly how to do
I have searched this site and also googled but can't seem to find the
I have searched but can't find why this simple code will fail in Drools
I have searched & searched but can't seem to figure this out: I have
I have searched, but can not find the answer I'm looking for. I want
I have searched everywhere but just can't seem to find the answer. Can you
I have searched around but can't find the answer to this relatively simple question;
I have a question that I've searched but can't find a definative answer to.
I have searched but I can't find anything that matches my query. I have

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.