Android Question I can't adapt it for use in B4A

vmag

Active Member
Hello.
There is an interesting android project, but I can't adapt it for use in B4A (download link, use 7z for unpacking).
This is a radio tag scanner.
The Necessary libraries Are Here:
THE SDK_Handheld Reader\eng\SDK_Release for Android-V4.1.0326\SDK Release\platform_sdk_v4.1.0326
THE SDK_Handheld Reader\eng\UHF\SDK
The API description is here
THY SDK_Handheld Reader\eng\SDK_Release for Android-V4.1.0326\API Reference_V4.1.0326
all you need is a radio tag scanner (UHF folder).
If possible, we need a small example with one button to connect to the scanner:
public boolean open Scanner()
Turn on the power for the barcode reader.
Parameters: none Returns: True if successful, false if failed.
Example:
Scenemanager scenemanager = new Scenemanager();
boolean ret = scan manager.open Scanner();
if(ret) { //open successful }
 

walterf25

Expert
Licensed User
Longtime User
Hello.
There is an interesting android project, but I can't adapt it for use in B4A (download link, use 7z for unpacking).
This is a radio tag scanner.
The Necessary libraries Are Here:
THE SDK_Handheld Reader\eng\SDK_Release for Android-V4.1.0326\SDK Release\platform_sdk_v4.1.0326
THE SDK_Handheld Reader\eng\UHF\SDK
The API description is here
THY SDK_Handheld Reader\eng\SDK_Release for Android-V4.1.0326\API Reference_V4.1.0326
all you need is a radio tag scanner (UHF folder).
If possible, we need a small example with one button to connect to the scanner:
public boolean open Scanner()
Turn on the power for the barcode reader.
Parameters: none Returns: True if successful, false if failed.
Example:
Scenemanager scenemanager = new Scenemanager();
boolean ret = scan manager.open Scanner();
if(ret) { //open successful }
You need to create a library wrapper for the SDK so that you can use it on a B4A project, search the forums on how to create libraries or alternatively you can also use the SDK jar file using the Java Object library.
 
Upvote 0

vmag

Active Member
Thanks for the reply.
Option 1 is mission impossible for me.
I am familiar with option 2, but unfortunately there is no example of accessing an object in the documentation, usually it is something like:
B4X:
#AdditionalJar: libXXXXX.aar
#AdditionalJar: classes
'.................................
Sub Button1_Click
    Dim in As Intent
    in.Initialize("suuu.atil.drivers10.service.PROCESS_TASK","")
    in.PutExtra("PARAM_REQUEST","{""type"":""closeShift"",""operator"":{""name"":""Silver Stoun"",""vatin"":""123654789507""}}")
    StartActivity(in) 'Or StartService(returnIntent)
    Sleep (3000)
End Sub
There is an
rfiddrive-release.aar
there, but it is not clear how to connect the resource for use
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Thanks for the reply.
Option 1 is mission impossible for me.
I am familiar with option 2, but unfortunately there is no example of accessing an object in the documentation, usually it is something like:
B4X:
#AdditionalJar: libXXXXX.aar
#AdditionalJar: classes
'.................................
Sub Button1_Click
    Dim in As Intent
    in.Initialize("suuu.atil.drivers10.service.PROCESS_TASK","")
    in.PutExtra("PARAM_REQUEST","{""type"":""closeShift"",""operator"":{""name"":""Silver Stoun"",""vatin"":""123654789507""}}")
    StartActivity(in) 'Or StartService(returnIntent)
    Sleep (3000)
End Sub
There is an
rfiddrive-release.aar
there, but it is not clear how to connect the resource for use
What functionality are you trying to achieve exactly?
 
Upvote 0

vmag

Active Member
I'm interested in the functionality within the instruction: THE SDK_Handheld Reader\eng\UHF\SDK\SDK Development Document.doc There is a working example of UHFDemoV3.95.apk in the UHF folder. Need to get a project that works with the raiddrive-release.aar and OtgUtils.java in the HY SDK_Handheld Reader\eng\UHF\SDK directory and with just one button to connect to the scanner:
scan.jpg

- after pressing the button, you get an error, because there is no radio tag scanner in a regular phone, and that's it...
This is a regular android 11 phone, but it has a built-in long-range radio tag scanner.
 
Last edited:
Upvote 0
Top