Make sure your development environment meets the following requirements :
Before you begin, make sure you complete the following steps:
If you haven't done so already, download and install Android Studio.
Open Android Studio and click Open an Existing Project.
Select the Android sample code folder in the package you downloaded (refer to the sample download section at the top of this document) and click Open.
The downloaded sample code package doesn't come with the required SDK packages. So you need to download them from the following links.
Extract the downloaded SDK package, and copy the SDK files into the app/libs
directory of the sample code project folder.
Modify the file AuthConstants.java
to set the value of APP_ID
and APP_SIGN
, which are required for initializing the SDK.
You must use the AppID and AppSign obtained as instructed in the Prerequisites section above, and append a letter L
to the value of the AppID. Otherwise, the sample code will not run correctly.
Connect your Android device (make sure Developer options and USB debugging are enabled) to your development computer. Once the device is successfully connected, it will appear in the target device drop-down menu in Android Studio.
Click the Run button to build and run the sample code.