# How to Use the SDK ## Adding the SDK ### 1. Select "app" -> "libs" -> Right-click -> "Open in Finder" ![1756792711083](../media/1756792711083.png) ### 2. Select the downloaded "251gsdk.aar" file The "251gsdk.aar" file will appear under the "libs" folder of the project. ![1756792723629](../media/1756792723629.png) ![1756792728562](../media/1756792728562.png) ### 3. Double-click on "build.gradle" Add the library to the dependencies. Next, click "Sync Now" to synchronize. ![1756792736716](../media/1756792736716.png) ![1756792744952](../media/1756792744952.png) ### 4. When synchronization is successful, the following screen will appear This completes the SDK installation. ![1756792752285](../media/1756792752285.png) --- ## Using the SDK ### The project needs to import the header file into the class that uses the SDK ![1756792794294](../media/1756792794294.png) ### Create an initialization object ![1756792800328](../media/1756792800328.png) ### Create and initialize the AsReaderEventListener object Override the methods in the AsReaderEventListener interface. ![1756792805874](../media/1756792805874.png) ### Connect to the ASR-L251G Note: Before connecting to the ASR-L251G, you must call the method "setEventListener(AsReaderEventListener listener)" to pass the AsReaderEventListener object. This is used to obtain the connection status, execution status listeners, and data returned from the ASR-L251G. ![1756792816305](../media/1756792816305.png) --- ## **Adding Project Permissions** Before using the SDK, you must define project permissions in the AndroidManifest.xml file of the app. ![1756792841775](../media/1756792841775.png)