Link Search Menu Expand Document

Android Sample App 6.5

Table of contents
  1. Android Sample App 6.5
    1. Overview
    2. Downloads
    3. Configuring the Sample App
      1. Installation
    4. Running the Sample App
    5. Runtime Permission
    6. Manifest Permissions
    7. Changelog
      1. 6.5.37 - 2021-11-11

Overview

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.

Downloads

Version 6.5  
Download link (credentials required) Click here
Release SHA256SUM 71d650f74f2bc58c68e53ba92422db946184408525a7fe97e62daa2048b53317
Version 6.5.37
Last updated at Nov 11, 2021

Configuring the Sample App

Installation

  1. Unzip <android-sample-6.5.X.zip>. As a result <android-sample-6.5.X> directory should be created.
  2. Open with Android Studio <android-sample-6.5.X> directory.
  3. Place uSDK aar to <android-sample-6.5.X/app/libs> directory.
  4. 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.
  5. To apply changes press button <Sync Project with Gradle Files> at the top of Android Studio.

Running the Sample App

  1. Connect your device via USB with enabled USB debugging option.
  2. 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.

Changelog

6.5.37 - 2021-11-11

  • Initial release for uSDK 6.5