Android Question Wrapper considerations between Android 7.1 and Android 8.1

johan vetsuypens

Member
Licensed User
Longtime User
I have 2 Datalogic Android devices. One is running Android 7.1 and the other Android 8.1

Thanks to DonManfred, who created a wrapper for the Datalogic.jar library, I can acces this devices specific barcode functions in the Datalogic.jar from B4A.
The wrapper is working perfectly on device with Android 7.1. But on the device with Android 8.1 the wrapper doesn't work.
The Datalogic.jar library from Datalogic is identical on the 7.1 and the 8.1 platforms.
The errors on Android 8.1 are always referring to a null object.
Eample :
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Enum.name()' on a null object reference

What are the B4A considerations to take in mind that are different between Android 7.1 target or Android 8.1 target when creating a wrapper.
Thanks,
Johan
 

DonManfred

Expert
Licensed User
Longtime User
The Datalogic Android 8.1 Version seems to maybe have some Properties disabled.
The Library is not calling anything special regarding Android itself.
In you case it seems that the System-Class (com.datalogic.device.info.SYSTEM) does not have a specific enum in your Manor 1 device.
 
Upvote 0
Top