Hi Erel:
I am trying to make one b4a app to Scan bar code with an Android 4 PDA device with barcode scanner (Honeywell dolphin black 15).
The Honeywell manufacturer has an SDK for java that I can use to activate barcode scanner an read many types of barcodes.
Since there is not chance to directly use the java SDK from a B4A project, I have tried to make a B4A library in java to use the SDK and use the library from B4A.
Taking as example the source of b4azxing library and the samples of Honeywell SDK, I made a library with a java class and an android activity.
The java class (HoneywellScanActivity) has a public method (DoScan) which opens the activity with a button. In the activity code I make the call to the Honeywell SDK objects to start the scan. I works perfect. The class DecodeManager of the SDK has a constructor with two parameters, the first one is an Android Context object, the second is the method handler that captures the callback of the DecodeManager doDecode method witch activate the scanner.
I would like to do the same library, but instead of open a new activity that calls the Honwywell API, I would need to call directly the Honeywell API from the first class. I have tried creating one DecodeManager and passing as the first parameter in the constructor the BA object passed from the B4A app. When I do the call to the DecodeManager doDecode method, in the log I receive an error coming from the SDK than indicates there is a null in some internal variable of the SDK, and the scanner does not activate.
I send a zip attachment that contains two folders and one jar file:
The honeywellScan folder has the java project for the b4a lib, that a explain in my first paragraph, the testHonyWellScan is the b4a test project that uses my lib, and the file honeywell.jar is the Honeywell api library.
I think the library could be useful for the people who have this Honeywell devices,
¿can you help me some way to do this?
Thanks a lot
I am trying to make one b4a app to Scan bar code with an Android 4 PDA device with barcode scanner (Honeywell dolphin black 15).
The Honeywell manufacturer has an SDK for java that I can use to activate barcode scanner an read many types of barcodes.
Since there is not chance to directly use the java SDK from a B4A project, I have tried to make a B4A library in java to use the SDK and use the library from B4A.
Taking as example the source of b4azxing library and the samples of Honeywell SDK, I made a library with a java class and an android activity.
The java class (HoneywellScanActivity) has a public method (DoScan) which opens the activity with a button. In the activity code I make the call to the Honeywell SDK objects to start the scan. I works perfect. The class DecodeManager of the SDK has a constructor with two parameters, the first one is an Android Context object, the second is the method handler that captures the callback of the DecodeManager doDecode method witch activate the scanner.
I would like to do the same library, but instead of open a new activity that calls the Honwywell API, I would need to call directly the Honeywell API from the first class. I have tried creating one DecodeManager and passing as the first parameter in the constructor the BA object passed from the B4A app. When I do the call to the DecodeManager doDecode method, in the log I receive an error coming from the SDK than indicates there is a null in some internal variable of the SDK, and the scanner does not activate.
I send a zip attachment that contains two folders and one jar file:
The honeywellScan folder has the java project for the b4a lib, that a explain in my first paragraph, the testHonyWellScan is the b4a test project that uses my lib, and the file honeywell.jar is the Honeywell api library.
I think the library could be useful for the people who have this Honeywell devices,
¿can you help me some way to do this?
Thanks a lot