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 : Vietnamese
    // en : English
    // zh : Chinese
    // id : Indonesian
    // th : Thai

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 : Vietnamese
    // en : English
    // zh : Chinese
    // id : Indonesian
    // th : Thai