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

}
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

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 find the factorial of a number using Recursive function

Problem Write a program in C to find the factorial of a number using recursion and display the resu...

C Program to find the Sum of natural numbers

Problem Write a program in C to find the sum of natural numbers using recursive function. How to f...

C Program to display inverted full pyramid using *

Problem Write a program in C to print inverted full pyramid using * as shown below.The program shou...