Android Datalogic SDK uses-library

Hi Datalogic,

I’m trying to integrate datalogic android sdk to our application.
I checked the manual (Datalogic Android SDK | Technical Documentation) and find next:
“Datalogic device compatible apps, relying on Datalogic SDK, require a mandatory change to the Android application manifest in order to work…”
Does this relates only for * SDK add-on component implementation? Or for both implementation (including Maven dependency (Recommended)) ?

Note: It has completely clear reason for SDK add-on component, as we compile app with custom SDK so we do limit app usage only to devices that are using it. However I don’t see why it should be added in case of dependency implementation, yet your sample app DecodeListener do exactly like that.

Thanks,
Vitalii

Hello @Vitalii_Levytskyi ,

Regardless of the method used to create a reference to the Datalogic SDK (the recommended Maven Dependency, or the legacy SDK Add-on method), in order for your application to use the API offered by the Datalogic SDK, you must add the library use clause within the ‘application’ tag to the manifest.

<uses-library 
    android:name="com.datalogic.device"/>

The android:required=‘true’ statement on the other hand is optional.

Simone Callegari
Datalogic Mobile L3 Products Specialist - Software Engineer

1 Like