I have a requirement i should display different UI's if a device has a in build scanner , So far i can know the device model and manifrature name , by using android.os.Build.MANUFACTURER or model etc from hardware information it is not giving if the device has a barcode scanner any idea how can we tweak this in experience & idea would be highly appreciated .
AFAIK, there is nothing in the Android SDK about whether a device has a built-in barcode scanner.
Related
I would like to ask, if it's possible for any app to detect if device has barcode scanner connected? Like Zebra TC26. I want my app to work diffrent when there is hardware connected scanner and when there isn't any.
You can use the DataWedge API - Enumerate Scanners which generates an index of scanners available on the device. You can check that and change the app behaviur based on the results.
Here's the complete list of avaliable DataWedge API's. And just in case you haven't worked with this, here's the main guide.
There are a few questions about using a barcode scanner with Delphi in SO, and if this was a VCL Windows application there would be no drama, but none of the answers seem to work for me. This is also about using an external scanner and not using the devices camera to scan barcodes, as that is also a doddle.
In a VCL app where I couldn't ensure which control has the focus, I would capture all the keys in KeyPreview, and on getting a CR, take the preceding value and check to see if it matches a product barcode.
Unfortunately, Firemonkey forms have no KeyPreview and I can't use the KeyDown event of the FMX form, as it has several controls capable of receiving text input, and if any of them have the focus, the event doesn't fire for the form.
These problems are all based on the scanner being paired as a HID, but as an option on the Motorola CS3070 Bluetooth scanner I am using, there is also a Serial Port Profile mode. It still pairs with the tablet, but not as a keyboard.
But there doesn't seem to be anything in the Android UI to indicate what "serial ports" the tablet has, and even if it did, I don't really have any idea on how to connect to and "listen" to that port inside a Delphi Firemonkey app.
As others have indicated, serial ports in Android are a different beast to Windows, and it looks like Delphi 10.3 Rio has no native support for using them.
What other options are there?
EDIT:
Looking at the Zebra website, which sell a re-branded CS3070, there is an Android SDK for their scanners, although sadly not for the CS3070 but they do have one for the CS4070. In the documentation they talk about connecting using BlueTooth or SNAPI (which I believe is the USB/serial mode), and also about subscribing to the scanner events.
Is this something we can do from FireMonkey without an SDK?
most of barcode reader in android has an SDK driver and send data via a Broadcast intent.
you should check in settings form if there's some info about it or inside the SDK. You just need the activity and category name and some extra info inside intent.
I am developing an app for PDA device (Honeywell EDA70) and i don't know how to access the physical Barcode scanner in it. Until now I only used barcode scanning using Camera not that physical sensor.
What i have tried:
Tried to search sample codes but didn't find any
What i want:
I'd like to know how to do barcode scanning with the physical sensor for that specific device, including any SDKs I need to download.
If possible, I'd like to have example code that implements scanning in such devices in general.
I'am late, but atleast for someone else. Scanner should be like a keyboard - if you focus on any textfield and press scanning button, the barcode will appear.
I'm writing an android app, that scans barcodes with a zebra rs6000 scanner connected via bluetooth (spp). So far is everything OK, it works.
Now I'm wondering if it's possible to send feedback to the user like different beep-sounds and/or LED colors on the scanner (whether or not the process behind the barcode was successfull).
I know it's possible to configure the scanner beforehand to make different beeps and show different colors scanning "configuration-barcodes", but I need to change these settings from my app. Has anyone an idea?
Any help would be very appreciated!
Got the answer from Zebra Developer Portal:
"Hi, there are APIs to control the RS6000 in the EMDK but I am pretty sure they only apply to a scanner connected in SSI mode. For SPP connected scanners you are limited to the configuration offered by scanning those configuration barcodes"
answered by Darryn Campbell
I am currently working on a project where i have to read and display an jpeg image (taken from a TI CC2541 BLE powered camera device) on an Android app which i have to develop. Using the official Android BLE Guide and some code online as reference i was able to setup and scan for the device. However, i got stuck when it come to setting up the GATT profile(services and characteristics) in order to do the image transferring from the device to my Android app. Anybody has any idea on how can i go about this? any link or guidance will be much appreciated.