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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:31:20+00:00 2026-06-06T09:31:20+00:00

Im trying to develop service that starts by bootup receiver if the wifi or

  • 0

Im trying to develop service that starts by bootup receiver if the wifi or bluetooth is enabled automatically disable it.

please help me out

thank you

  • 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-06T09:31:21+00:00Added an answer on June 6, 2026 at 9:31 am

    In the manifest

    <receiver android:name=".BootTimeServiceStarter" >
                <intent-filter>
                    <action android:name="android.intent.action.BOOT_COMPLETED" />
                </intent-filter>
            </receiver>
    

    And in your class file do the following

     public class BootTimeServiceStarter extends BroadcastReceiver 
        {
    
            @Override
            public void onReceive(Context context, Intent intent)
            {
    
    
        BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();
                if (bluetooth.getState() == BluetoothAdapter.STATE_ON
                        || bluetooth.getState() == BluetoothAdapter.STATE_TURNING_ON) {
                        bluetooth.disable();
                }
        WifiManager wifiManager = (WifiManager) context
                        .getSystemService(Context.WIFI_SERVICE);
                if (wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED
                        || wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLING) {
                    wifiManager.setWifiEnabled(false);
                }
    
    
                }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are trying to develop an application that send messages to a service, but
I am trying to develop a client application that calls a RESTful web service.
I'm trying to develop a standalone Java web service client with JAX-WS (Metro) that
I am trying to develop a .NET 3.5 service application that uses: WCF for
I' am trying to develop a WS-security enabled web service with Apache CXF. Tutorial
I'm trying to develop a web service that uses WS-Security using Websphere 7 and
I am trying to develop an rhq plugin for a service that requires metrics.
I'm trying to develop and deploy a WCF service using VS2008 and Vista home
im trying to develop an app for a win CE mobile device that downloads
I'm trying to develop a class that supports an asynchronus method invocation. This is

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.