Skip to content

Integrate SDK

Before you begin

Initializing the Android SDK

Initialize the SDK

1. Initialize the SDK and select the language for the SDK:

SohaSDK.getInstance().init(MainActivity.this, logoutCallback);
SohaSDK.getInstance().setLanguage(MainActivity.this, "vi");
  // vi : Tiếng Việt
  // zh : Chinese
  // en : English
  // id : Indonesia
  // th : Thái Lan

2. Change SDK language

When the application changes the language, update the SDK language with the following method:

SohaSDK.getInstance().setLanguage(MainActivity.this, "vi");
  // vi : Tiếng Việt
  // zh : Chinese
  // en : English
  // id : Indonesia
  // th : Thái Lan