release Wifi Multicast - Android Wifi

Android examples for Wifi:Wifi Connection

Description

release Wifi Multicast

Demo Code


//package com.java2s;

import android.net.wifi.WifiManager.MulticastLock;

public class Main {
    private static MulticastLock wifiMulticastLock;

    public static void releaseWifiMulticast() {
        if (wifiMulticastLock != null && wifiMulticastLock.isHeld()) {
            wifiMulticastLock.release();
        }/*from  w  w  w .  j a  v a  2  s. c o m*/
    }
}

Related Tutorials