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

  • Home
  • SEARCH
  • 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 6561373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:34:44+00:00 2026-05-25T13:34:44+00:00

In my android app, the user has the possibility to do a firmware update

  • 0

In my android app, the user has the possibility to do a firmware update via bluetooth of another device with his android phone.

My question is : Is it possible to detect when the user try to turn off the bluetooth and to send him a warning message like :”Warning turning off the bluetooth will interupt the firmware update !”

With the BluetoothAdapter Broadcast Action :

public static final String ACTION_STATE_CHANGED

Since: API Level 5 Broadcast Action: The state of the local Bluetooth
adapter has been changed. For example, Bluetooth has been turned on or
off. Always contains the extra fields EXTRA_STATE and
EXTRA_PREVIOUS_STATE containing the new and old states
respectively. Requires BLUETOOTH to receive.
Constant Value: “android.bluetooth.adapter.action.STATE_CHANGED”

It’s only possible to receive a broadcast once the Bluetooth is already turned off (so it’s too late for the warning ^^ )

Any help would be appreciate !
Best regards

  • 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-25T13:34:45+00:00Added an answer on May 25, 2026 at 1:34 pm

    You should show such critical messages at the start of the firmware update. After that if the user switches off the bluetooth then its his responsibility. He cannot blame your software for any loss.

    And I dont think we are allowed to block operations such as turning off bluetooth. Allowing such blocking will make it open to hacks. A malicious app could stop the user from switching off his bluetooth.

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

Sidebar

Related Questions

I am developing an android app where a user has to enter his login
Is it possible to install an update an android app without the user even
I am working on an Android app that has multiple screens the user will
Is it possible to check on startup of an Android app whether the user
Is it possible to check on startup of an Android app whether the user
In an Android app I let the user edit his preferences by running a
I am developing an Android app where the user has the facility of Facebook
I'm working on an android app which has different layouts for phone vs tablet.
My android app has a two word app name, and the 2nd word doesn't
I've got an Android app which has a periodic background Service. I want this

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.