Android Question Using Barcode Scanner via Bluetooth

EduardoElias

Well-Known Member
Licensed User
Longtime User
I am trying to use a scanner by bluetooth.

But this kind that I am using disconnects frequently for battery safe.

When it reconnects it restarts my app, since android recognized a keyboard connected.

This cause my app to reload a lot of things that only happens when the application is turned on.

My question is, what is the cycle that happens when a Bluetooth keyboard is connected? I dont want that the app get restarted
 

EduardoElias

Well-Known Member
Licensed User
Longtime User
I will take a look on this.. however I am using USB barcode Scanner either and I am not sure SPP runs on USB ?
 
Upvote 0

fixit30

Active Member
Licensed User
Longtime User
Sorry, the thread title said Bluetooth. You will need to check the documentation of your USB device, but I would of thought that it could be configured for Serial comms instead of keyboard emulation.
 
Upvote 0
Top