I was using Android SDK for my application development. Now I am in a situation to move on cross platform development so, I started learning Phonegap as it is well suitable for cross platform.
I want to use external scanner device and card swipper with android device. I googled it but i didnt find any useful ideas.
I explored phonegap.com/ but it explains only about using device sensors,contacts and media information..etc. But It didnt say about implementing external hardware devices.
Please help me.
For a barcode scanner, you probably want to get a bluetooth capable device, as USB devices can be problematic to connect to different devices. Start by using it in HID mode, which emulates a keyboard (nb, doesnt play nice on iPad and other apple devices, popup keyboard disappears, but android ok). Later you can try using SPP mode. When using HID mode with phonegap, you dont need to do anything special, just read as keystrokes in html pages.
There is also a phonegap plugin for zxing to use the camera, but you asked about external physical scanners, which are faster for bulk scanning.
Haven't tried connecting card swipe readers to android yet
Related
I am working on a project (written in Flutter) that ideally runs on a tablet and uses NFC. I know that iPads do not support reading NFC, but I am surprised that I cannot find an Android tablet that supports it either.
So, I am looking at using an external device that connects to a tablet (iOS or Android, I don't care) reliably and allows portability. I cannot assume my users have both an iPhone AND a iPad, so I cannot take advantage of that pairing.
My searching has not turned up any solution - but surely somebody knows a hardware solution that can help me out?
Their website documentation stated that operation is not guaranteed. Was there a known instance that it did work or not? I've seen this product works in IOS Bluetooth and Bluetooth is supposed to be product agnostic. So I don't understand why operation is not guaranteed.
I got the below information from a friend:
Well, it seems the keyboard supports Android just fine.
From this(https://www.amazon.com/product-reviews/B01IP4ENCS) page: "I
held off buying this keyboard for a long time because I read comments
that said it did not work with Android. But that is not correct (at
least in 2019) ... the keyboard works just fine with Android over
Bluetooth. I tested with Android 8 and up, using the app FluidSynth
(which allows you to use downloadable sf2 soundfont files).
The only tip: you must connect to LE Bluetooth from inside the
Fluidsynth app, not from Android's system."
And this(https://pianopenguin.net/best-bluetooth-midi-keyboard/) page:
"This simply means that you can connect it with any Mac, Android or
Windows device that uses Bluetooth."
Therefore, this proves enough that the Korg microKEY Air does work on Android Bluetooth.
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 have an Android device, which I want to connect to the Android-based projector with Jellybean installed into the projector. What I want is to share Android device keyboard to the Android projector virtually, how this can be achieved so that my Android device keyboard is connected to Android projector and text can be written to Android projector browser. Projector has native browser-based Android app for browsing the internet.
I search on the internet but didn’t get any solution, therefore I am here to get help from you guys. A small help you yours can also lead to the solution to my problem.
I am currently learning Actionscript 3.0, mainly to start developing mobile games for Android.
Device central is really useful to emulate the Flash content running on devices, but I thought there was a way to test directly on the device itself via USB. Am I mistaken here, because I cannot for the life of me find any information on doing this.
I found several guides on how to get the USB connection up, but the actual testing/debugging itself seems to be done exclusively in Flash Builder.
I am using Flash CS5, and I want to test my AS3 projects directly on my Nexus S via USB.
The only guides I can find detail the publishing of Flash projects to Android, which is a fairly lengthy process. Surely there has to be a quicker way to preview content directly on your phone without having to go through the entire process of creating an APK for it?
This should help you out...
Getting Started with Adobe AIR for Android