printing - Android BlueTooth Printer Connectivity -
i've created app i'm printing text data app bluetooth printer. app working fine 1 thing there i've given harcoded name of bluetooth printer print data.
i want make app send text data android compatible bluetooth printer. or small hint helpful.
is there property of bluetoothdevice can helpful in finding out whether connected device bluetooth printer or not? in advance!
if use bluetoothdevice class, can call getbluetoothclass()
function. returns bluetoothclass object, , on can use getmajordeviceclass()
major device class , getdeviceclass()
minor device class. believe printers should have 1536 major class , 1664 minor device class. might want oduble check device classnumbers, though.
Comments
Post a Comment