wrapping task is requested

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
is there anyone who can and will wrap this so it can be used with B4A ?
or if it can be used ASIS explain how to use it ?

this is a link to source code and SDK to enable reading credit card through the camera and parse the number.
the code & sdk are free.

https://www.card.io/

the result should be an easy to use with sample project

if you're interested - please leave your respond here or send it to me


thanks
 

Johan Schoeman

Expert
Licensed User
Longtime User
is there anyone who can and will wrap this so it can be used with B4A ?
or if it can be used ASIS explain how to use it ?

this is a link to source code and SDK to enable reading credit card through the camera and parse the number.
the code & sdk are free.

https://www.card.io/

the result should be an easy to use with sample project

if you're interested - please leave your respond here or send it to me


thanks
I have started wrapping this and the library compiles all OK. However, it seems to me as if there are two .so files that needs to be built and then also found this inside the Java code (i.e seems like limited device application):

B4X:
    /**
     * Determine if the device supports card scanning.
     * <br><br>
     * An ARM7 processor and Android SDK 8 or later are required. Additional checks for specific
     * misbehaving devices may also be added.
     *
     * @return <code>true</code> if camera is supported. <code>false</code> otherwise.
     */
    public static boolean canReadCardWithCamera() {
        try {
            return Util.hardwareSupported();
        } catch (CameraUnavailableException e) {
            return false;
        } catch (RuntimeException e) {
            Log.w(TAG, "RuntimeException accessing Util.hardwareSupported()");
            return false;
        }
    }

So, I left it there...
 

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
I have started wrapping this and the library compiles all OK. However, it seems to me as if there are two .so files that needs to be built and then also found this inside the Java code (i.e seems like limited device application):

B4X:
    /**
     * Determine if the device supports card scanning.
     * <br><br>
     * An ARM7 processor and Android SDK 8 or later are required. Additional checks for specific
     * misbehaving devices may also be added.
     *
     * @return <code>true</code> if camera is supported. <code>false</code> otherwise.
     */
    public static boolean canReadCardWithCamera() {
        try {
            return Util.hardwareSupported();
        } catch (CameraUnavailableException e) {
            return false;
        } catch (RuntimeException e) {
            Log.w(TAG, "RuntimeException accessing Util.hardwareSupported()");
            return false;
        }
    }

So, I left it there...


Oops...
Seems i forgot to update that it is all done and i have what i wanted.
My apologies...
This issue is closed.
 
Top