Determining Bluetooth stack version programatically on an Android device -
how find bluetooth stack version on android device programatically?
for example, way find android version android.os.build.version.release. so, there similar way find out bluetooth stack version?
int version = integer.parseint(build.version.sdk); string bluezstack = ""; switch (version) { case build.version_codes.base: case build.version_codes.base_1_1: case build.version_codes.cupcake: case build.version_codes.donut: bluezstack = "bluez 3.36"; break; case build.version_codes.eclair: case build.version_codes.eclair_0_1: case build.version_codes.eclair_mr1: case build.version_codes.froyo: bluezstack = "bluez 4.47"; break; case build.version_codes.gingerbread: case build.version_codes.gingerbread_mr1: case build.version_codes.honeycomb: case build.version_codes.honeycomb_mr1: case build.version_codes.honeycomb_mr2: bluezstack = "bluez 4.69"; break; default: break; }
Comments
Post a Comment