Bluetooth Printing on Android

前端 未结 4 936
孤独总比滥情好
孤独总比滥情好 2021-02-06 19:52

I am trying to print to an HP DeskJet 450wbt printer from my T-Mobile Pulse Mini phone, using the Android Bluetooth API. The code is as shown below. The connection fails with \"

4条回答
  •  广开言路
    2021-02-06 20:33

    I think the reason might be that the Bluetooth stack on android you are using might not support the BPP profile , if you are using the standard android versions it does not support BPP.

    The mechanism of socket creation is failing because the printer does not implement the SPP profile. The android examples depend on the server side SPP to be listening to be able to connect from the client. The printer for sure will not have generic SPP server listening.

提交回复
热议问题