stop bluetooth Advertising - Android Bluetooth

Android examples for Bluetooth:Turn off bluetooth

Description

stop bluetooth Advertising

Demo Code


//package com.java2s;
import android.bluetooth.le.AdvertiseCallback;

import android.bluetooth.le.BluetoothLeAdvertiser;

public class Main {
    public static void stopAdvertising(BluetoothLeAdvertiser advertiser,
            AdvertiseCallback callback) {
        if (advertiser == null)
            return;

        advertiser.stopAdvertising(callback);
    }/*from   w ww  .j ava  2 s. c o  m*/
}

Related Tutorials