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

Published on May 17, 2015 by abundantcode

Filed under Java

Last modified May 17, 2015

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 5 (1 votes)

This article have been viewed 5806 times

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();
    }

}

1 Comment

  1. Microsoft Band and Android(Java) – Connect to the Band | Abundant Code
    May 17, 2015 - 12:53 pm

Leave a Comment


x

You might be Interested in these Posts

C# Program to swap two numbers without using temporary variable

Problem Write a program in Visual CSharp to swap two numbers using temporary variable and display t...

C# Program to swap two numbers

Problem Write a program in C# to swap two numbers using temporary variable and display the result i...

C# Program to print the sum of two numbers

Problem Write a program in C# to add two numbers and display the result in copnsole window. How to...