public static FirmwareVersionInfo getWatchFWVersion ( final Context context ) { Cursor c = null ; try { c = queryProvider ( context ) ; if ( c == null || ! c . moveToNext ( ) ) { return null ; } int majorVersion = c . getInt ( KIT_STATE_COLUMN_VERSION_MAJOR ) ; int minorVersion = c . getInt ( KIT_STATE_COLUMN_VERSION_MINOR ) ; int pointVersion = c . getInt ( KIT_STATE_COLUMN_VERSION_POINT ) ; String versionTag = c . getString ( KIT_STATE_COLUMN_VERSION_TAG ) ; return new FirmwareVersionInfo ( majorVersion , minorVersion , pointVersion , versionTag ) ; } finally { if ( c != null ) { c . close ( ) ; } } }
Get the version information of the firmware running on a connected watch .