stop bluetooth Advertising - Android Phone

Android examples for Phone: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   ww  w  .j av  a 2s  .  c om*/
}

Related Tutorials