Microsoft Band and Android(Java) -Get the Version Information

Below is a sample code snippet demonstrating how to get the version information from Microsoft Band using Java from android app.

How to Get Microsoft Band Version Information using Java in Android Application ?

    BandPendingResult<String> result = bandClient.getFirmwareVersion();
    String firmVersion = result.await();  
    result = bandClient.getHardwareVersion();  
    String hardwareVersion = result.await();    
catch(Exception ex)
    // Handle Exception