Native Android
🤖 Native Android Localization for REL-ID IDV SDK
This document provides step-by-step guidance for configuring localization support in a Native Android app using the REL-ID IDV SDK (based on Section 11.5.1).
🧾 Overview
Localization allows you to customize the SDK UI strings and provide support for multiple languages. If localization is not required, this section can be skipped.
📋 Required Files
Ensure you obtain the following XML files from the REL-ID admin:
idv-core.xml
strings-idv-doc-scan.xml
strings-idv-selfie-capture.xml
These files correspond to the following SDK components:
SDK Module | File Name |
---|---|
IDV Core | idv-core.xml |
Document Capture | strings-idv-doc-scan.xml |
Selfie Capture | strings-idv-selfie-capture.xml |
🛠️ Integration Steps
Step 1: Open Project
Open your Native Android project in Android Studio.
Step 2: Create Locale-Specific Values Folder
- Navigate to
res
directory. - Right-click → New → Android Resource Directory.
- Set Resource Type to
values
. - Choose Locale such as
ru-RU
for Russian.
Step 3: Add XML Files
Place the following XML files in the appropriate locale-specific directory (e.g., values-ru-rRU
):
idv-core.xml
strings-idv-doc-scan.xml
strings-idv-selfie-capture.xml
Step 4: Customize Strings
Open the XML files and modify the strings for localization.
<string name="scan_document_prompt">Пожалуйста, отсканируйте документ</string>
<string name="capture_selfie_prompt">Пожалуйста, сделайте селфи</string>
Repeat this for each string that needs translation.
📌 Notes
- You may optionally merge these into your main
strings.xml
, but the key names must remain unchanged. - Repeat for every language/region by creating additional
values-<locale>
folders.
With this setup, your Native Android app will support localized REL-ID SDK workflows across all integrated components.
Updated 3 months ago