Java tutorial
//package com.java2s; import android.bluetooth.BluetoothAdapter; public class Main { public static void stopBluetooth() { BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (bluetoothAdapter != null) { if (bluetoothAdapter.isEnabled()) { bluetoothAdapter.disable(); } } } }