Please help me convert to a B4A Library

UnknownArt

Member
Licensed User
Longtime User
I purchased an android device with barcode reader from http://www.chainway.net/support.html

Model number: C4000


They have provided me with a Jar file (DeviceAPIver20161024.jar).

Could someone help me convert this file to a B4A library so that I can start controlling devices?

You could download the Jar file and SDK from their support website.


upload_2016-11-19_17-32-39.png


I will pay your professional work by PayPal or other payment method you prefer.
Please help me.
 

Attachments

  • ver20161024.png
    ver20161024.png
    24.8 KB · Views: 245

Johan Schoeman

Expert
Licensed User
Longtime User
I purchased an android device with barcode reader from http://www.chainway.net/support.html

Model number: C4000


They have provided me with a Jar file (DeviceAPIver20161024.jar).

Could someone help me convert this file to a B4A library so that I can start controlling devices?

You could download the Jar file and SDK from their support website.


View attachment 50212

I will pay your professional work by PayPal or other payment method you prefer.
Please help me.
Try this and see if it works on your C4000:
https://www.dropbox.com/s/61u3xdenwfihl3f/b4aC4000_2D_Barcode.zip?dl=0

I have zipped the complete B4A project. The library files are in the project - copy them to your additional library folder. I cannot test it as I don't have a C4000 device but on my S4 mini I can at least see the layout.

1.png
 

UnknownArt

Member
Licensed User
Longtime User
Awesome! Thank you for your help.
I have a single bit issue to compile. Please help me to test your code.
 

Attachments

  • Windows 2008 [Running] 2016-12-12 08-35-02.png
    Windows 2008 [Running] 2016-12-12 08-35-02.png
    270.5 KB · Views: 265

eps

Expert
Licensed User
Longtime User
it's erroring for themes.xml - do you need this in there?

It's trying to apply 'MyAppTheme' from that xml file..

This might be a standard xml file that Johan uses for his Apps. You could remove it and the App should compile. You may well need to apply a theme to your App - but most of mine (rightly or wrongly) are applied in the manifest file.
 

Johan Schoeman

Expert
Licensed User
Longtime User
it's erroring for themes.xml - do you need this in there?

It's trying to apply 'MyAppTheme' from that xml file..

This might be a standard xml file that Johan uses for his Apps. You could remove it and the App should compile. You may well need to apply a theme to your App - but most of mine (rightly or wrongly) are applied in the manifest file.
The MyAppTheme.xml should be in the project that I have uploaded to the Dropbox link....
 

Johan Schoeman

Expert
Licensed User
Longtime User
Could you provide your themes.xml? Just in case.
It should be in the /resource folder of the B4A project - the /resource folder is on the same folder level as the /Files and /Objects folders of the B4A project. Do you have DesignSupport (I think it is Version 2.00) and AppCompat (i think it is version 3.20) enabled in your B4A project and are they in your additional library folder?
 
  • Like
Reactions: eps

Johan Schoeman

Expert
Licensed User
Longtime User
Awesome! Thank you for your help.
I have a single bit issue to compile. Please help me to test your code.
This is the error that I get if AppCompat V3.20 and DesignSupport V2.00 are not enabled and not in my additional library folder

B4X:
B4A version: 6.31
Parsing code.    (0.00s)
Compiling code.    (0.62s)
Compiling layouts code.    (0.25s)
Organizing libraries.    (1.61s)
Generating R file.    Error
..\resource\values\themes.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat'.
..\resource\values\themes.xml:6: error: Error: No resource found that matches the given name: attr 'colorAccent'.
..\resource\values\themes.xml:4: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
..\resource\values\themes.xml:5: error: Error: No resource found that matches the given name: attr 'colorPrimaryDark'.

So make sure you have them in your additional library folder and that they are both enabled in your B4A project. I have attached them for just in case...
 

Attachments

  • DesignSupportAppCompat.zip
    92.1 KB · Views: 264
  • Like
Reactions: eps
Top