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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:27:37+00:00 2026-06-10T20:27:37+00:00

I have my own application home screen as default home screen for my android

  • 0

I have my own application home screen as default home screen for my android device. I have a status bar in my application and I am managing the Bluetooth connection status with an Imageview(onclick) in that status bar.

If I click on the Imageview in my statusbar I am turning the bluetooth on/off. I am changing the background of imageview according to the status of bluetooth.

If bluetooth is ON – Blueimage

If bluetooth is OFF – greyImage

So my question is – If I enable/disable the bluetooth in bluetoth settings page and press the back button and navigate to my home screen then Imageview(background image) in my status bar should get changed automatically.

I tried a lot updating the image of imageview on back button press(by overriding onbackpressed method) but no result.

Is there any similar API with which we can read/store the status of bluetooth in a variable as soon as we enable/disable the bluetooth in bluetooth settings page and according to that the status bar imageview backround will get changed automatically?

Any help is greatly appreciated, Thanks

  • 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-10T20:27:38+00:00Added an answer on June 10, 2026 at 8:27 pm

    you can put the code that checked for the Bluetooth status in the onRestart() method

    like this:

    public class yourClass {
    
     public void onCreate(Bundle savedInstanceState) {
    
     // your code
     }
    
     public void onRestart() {
    
     // put the checked code for the Bluetooth status here  
     } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to have my own Launcher Application for Android in other words ,
I have created my own debugger application. It attaches to a process and creates
I'm writing a web based application that will have its own authorization/authentication mechanism (traditional
I've got an asp.net application where each client will have their own data entry
I'm currently working on a simple web application where users each have their own
I have an application where users select their own display columns. Each display column
I have a Winforms application that generates its own PrintDocument object for printing. It
We have an application that is essentially implementing its own messaging queue. When a
I have an application where for each object the user can specify his own
I have a wxPython application with the various GUI classes in their own modules

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.