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

The Archive Base Latest Questions

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

Due to overwhelming user complaints I have decided try allowing users of my Android

  • 0

Due to overwhelming user complaints I have decided try allowing users of my Android application to move it to the SD card as per the official documentation. However, a core feature of my application requires a background service to be continuously running. When someone who has moved my app to their SD card mounts their SD card for whatever reason, my background service will be killed.

That’s all okay by me, as long as I can restart the service at the first available opportunity. Unfortunately, despite the install-location guide claiming I can use the Broadcast Intent ACTION_EXTERNAL_APPLICATIONS_AVAILABLE to detect when the SD card is remounted locally, the documentation for that flag itself, this newsgroup discussion, and my own testing show that this broadcast is not delivered to the applications which become available. Only applications which have not been moved to the SD card get the Broadcast Intent.

Is there any way to restart my background service without waiting for the user to open my app after the SD card is remounted?

  • 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-17T18:54:19+00:00Added an answer on May 17, 2026 at 6:54 pm

    Not reliably. You could hook into permission-less broadcast Intents (e.g., ACTION_SCREEN_OFF) that should fire eventually and get control that way. As Ms. Hackborn indicates, the right answer is for ACTION_EXTERNAL_APPLICATIONS_AVAILABLE to be fixed. You might also see if some SD card-related broadcast happens to occur after external applications are available (e.g., ACTION_MEDIA_MOUNTED), though I would expect all of those to have passed before the external application is available.

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

Sidebar

Related Questions

Due to IE's inability to fade transparent PNG's I have decided to change my
EDIT Due to the overwhelming amount of advice I have received, I have fixed
Due to an incident a few months prior, thousands of author_ids have been deleted
Due to a number of constraints that I won't get into, I have to
Due to language differences I need to have a separate landscape layout for German.
Due to me receiving a very bad datafile, I have to come up with
Due to a merger, we have inherited a couple of legacy apps which run
Due to a variety of design decisions, we have a table, 'CustomerVariable'. CustomerVariable has
Due to performance problems, I have replaced ReaderWriterLock with ReaderWriterLockSlim . I am experiencing
Due to a rather brilliant oversight in my current project, we have some guids

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.