The sample Android application demonstrates the recommended way of integrating the uSDK as well as invoking its methods. The application requires Android uSDK version 6.5, you can download the latest release from the corresponding release page.
Unzip <android-sample-6.5.X.zip>. As a result <android-sample-6.5.X> directory should be created.
Open with Android Studio <android-sample-6.5.X> directory.
Place uSDK aar to <android-sample-6.5.X/app/libs> directory.
Open <android-sample-6.5.X/app/build.gradle> file and in dependencies section change string <usdk-6.5.XX> to uSDK file name without <.arr> suffix.
To apply changes press button <Sync Project with Gradle Files> at the top of Android Studio.
Running the Sample App
Connect your device via USB with enabled USB debugging option.
To run the application press Run button at the top of Android Studio.
Runtime Permission
The sample app requests two permissions to be explicitly allowed by the user. These are examples of permissions that could be requested by a merchant app to gather additional authentication data. They are not required by the uSDK.
Permission
Why the app or uSDK needs it
ACCESS_FINE_LOCATION
This permission is required for getting location data like GPS coordinates.
READ_PHONE_STATE
This permission is required for getting data related to device and SIM card. For example: phone number, Device ID, SIM card serial number and so on.
Manifest Permissions
Permission
Why the app or uSDK needs it
INTERNET
This permission is required for network exchange.
ACCESS_WIFI_STATE
This permission is required for getting data about Wi-Fi like Wi-Fi MAC address, Network ID and so on.
BLUETOOTH
This permission is required for getting data related to Bluetooth. For example: Device name, Is Bluetooth turned on and so on.