Created
November 14, 2018 17:27
-
-
Save samyak-jain/8b12c8d1cad41ab2904641099c8d7ac3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void initUI() { | |
AGApplication.the().getmAgoraAPI().channelJoin(channelName); | |
} | |
public void onClickLogin(View v) { | |
if (enableLoginBtnClick) { | |
account = textAccountName.getText().toString(); | |
if (account == null || account.equals("")) { | |
ToastUtils.show(new WeakReference<Context>(LoginActivity.this), getString(R.string.str_msg_not_empty)); | |
} else if (account.length() >= Constant.MAX_INPUT_NAME_LENGTH) { | |
ToastUtils.show(new WeakReference<Context>(LoginActivity.this), getString(R.string.str_msg_not_128)); | |
} else if (account.contains(" ")) { | |
ToastUtils.show(new WeakReference<Context>(LoginActivity.this), getString(R.string.str_msg_not_contains_space)); | |
} else { | |
enableLoginBtnClick = false; | |
AGApplication.the().getmAgoraAPI().login2(appId, account, "_no_need_token", 0, "", 5, 1); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment