Android SDK Initialization

Introduction

Before accessing the Miracle Games SDK, you need to initialize the SDK first, and after the initialization is completed, you can use all the functions of this SDK with the backend system. Generally, SDK initialization is done after entering the game.

SDK Initialization

//this is an Android Activity object.
MGSdkPlatform.getInstance().init(this, new MGInitListener() {
	@Override
	public void onSuccess(String msg) {
		Log.d(TAG, "Initialization succeeded;" + "msg===" + msg);
	}
	@Override
	public void onFailed(String msg) {
		Log.d(TAG, "Initialization failed;" + "msg===" + msg);
	}
});

Errors that do not initialize successfully may be as follows

Video Demonstration - Initialization