Microsoft Band and Android (Java) – Getting the list of Paired Bands

Below is the sample code snippet demonstrating how to get the list of paired Bands from your android application using java.

How to get the list of paired bands from the android application using java?

import com.microsoft.band.BandClient;
import com.microsoft.band.BandClientManager;
import com.microsoft.band.BandException;
import com.microsoft.band.BandInfo;
import com.microsoft.band.BandIOException;
import com.microsoft.band.ConnectionState;

public class BandManager
{
    public BandInfo[] GetPairedBands()
    {
        return BandClientManager.getInstance().getPairedBands();
    }

}