|  |  | 
 |  |  |  | 
 |  |  | import android.app.AlertDialog; | 
 |  |  |  | 
 |  |  | import com.secondworld.sdk.GameApp; | 
 |  |  | import com.secondworld.sdk.GameAppProxy; | 
 |  |  | import com.secondworld.sdk.PlatformDiff; | 
 |  |  | import com.secondworld.sdk.UnityMsgHandler; | 
 |  |  | import com.secondworld.sdk.utils.CodeA2U; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public void process(JSONObject json) throws JSONException { | 
 |  |  |         GameApp.I.appId = json.getString("appID"); | 
 |  |  |         GameAppProxy.appId = json.getString("appID"); | 
 |  |  |  | 
 |  |  |         long size = DeviceUtil.getTotalRAMSize() / 1024 / 1024; | 
 |  |  |         LogUtil.debug("CmdInit", "内存:" + size + " mb"); | 
 |  |  | 
 |  |  |             _builder.setCancelable(false); | 
 |  |  |             _builder.setMessage("您的设备运行内存不满足要求,无法正常运行游戏"); | 
 |  |  |             _builder.setPositiveButton("确定", (dialogInterface, i) -> { | 
 |  |  |                 GameApp.I.appExit(); | 
 |  |  |                 GameAppProxy.appExit(); | 
 |  |  |             }); | 
 |  |  |             _builder.show(); | 
 |  |  |             return; |