Hi!
I am using a snap-on barcode scanner thriugh bluetooth...
Snap-On makes barcode scanners, I missed that one.
What happens when you use the example in the link below?
Updated implementation, based on B4XPages of https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/#content. The code is much simpler compared to the previous example. Note that you can call Serial.Listen without making the device discoverable. This is useful...
www.b4x.com
PLEASE NOTE:
USE AStream.Initialize and
NOT AStream.InitializePrefix (don't use InitializePrefix), check the code below. Within 5 minutes of downloading the Bluetooth example, I had tested it with multiple Bluetooth scanners, it works perfect every time.
Sub AfterSuccessfulConnection
If AStream.IsInitialized Then AStream.Close
AStream.Initialize(serial.InputStream, serial.OutputStream, "astream")
ConnectionState = True
B4XPages.ShowPage("Chat Page")
End Sub
I scanned a pack of Duracell batteries, tested with 5 different brands of barcode scanners and Bluetooth example works perfect every dingle time.
However, none of the text fields now have the virtual keyboard pop-up... Is there a way to use both inputs?
You're clearly doing something strange as the textboxes popup perfect here.
Enjoy...