REST API

Updating the
AndroidManifest.xml
File

Update your
AndroidManifest.xml
file to enable a large heap size, disable support for right to left (RTL) layouts, and enable the needed permissions for the Default UI. Enabling a large heap size is required in order to accommodate situations in which an update of your terminals is required, and for which larger chunks of data are requested and transferred.
WARNING
Do not enable automatic backup in your app's
AndroidManifest
file. The Tap to Phone Android SDK uses the Android Keystore to install and store cryptographic keys in your app. Using automatic backup restores the default encryption preferences and causes a functionality error in the Tap to Phone Android SDK.
Follow these steps to update your
AndroidManifest.xml
file.
  1. Set the
    android:allowBackup
    attribute to
    false
    , the
    android:largeHeap
    attribute to
    true
    , and the
    android:supportsRtl
    attribute to
    false
    .
    <application ... android:allowBackup="false" android:largeHeap="true" android:supportsRtl="false" > ... </application>
  2. Enable the needed permissions for the Default UI.
    <!-- Needed for Default UI !--> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/>