This is a shortcut wrap for this Github project. Just wanted to see if I could kick start it from within B4A. Have not added any code to return scan results to the B4A app.
You need to download the B4A lib files from the link below:
https://drive.google.com/open?id=0B4g9tud5lvjgMFNLSWR1SmtOS2M
I need to sort out the "locale" classes. Have translated them all into English for now as I picked up numerous "undefined character" problems while those classes contained the original languages that were present. Will revisit this sometime to make sense of it.
Posting:
1. B4A sample project
2. LibRes.zip - extract it and copy the folder and its content to be on the same folder level as that of the /Files and /Objects folders of the B4A project
3. DemoRes.zip - extract it and copy the folder and its content to be on the same folder level as that of the /Files and /Objects folders of the B4A project
Take note of the B4A manifest file.
Sample code:
Libs enabled:
You need to download the B4A lib files from the link below:
https://drive.google.com/open?id=0B4g9tud5lvjgMFNLSWR1SmtOS2M
I need to sort out the "locale" classes. Have translated them all into English for now as I picked up numerous "undefined character" problems while those classes contained the original languages that were present. Will revisit this sometime to make sense of it.
Posting:
1. B4A sample project
2. LibRes.zip - extract it and copy the folder and its content to be on the same folder level as that of the /Files and /Objects folders of the B4A project
3. DemoRes.zip - extract it and copy the folder and its content to be on the same folder level as that of the /Files and /Objects folders of the B4A project
Take note of the B4A manifest file.
Sample code:
B4X:
#Region Project Attributes
#ApplicationLabel: b4aCardIOA
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes: ..\LibRes
#AdditionalRes: ..\Demores
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim cioa As CardIO
Private Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
cioa.Initialize("")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
cioa.startCardIO
End Sub
Libs enabled:
Attachments
Last edited: