Skip to content

Instantly share code, notes, and snippets.

@samyak-jain
Created November 14, 2018 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samyak-jain/a2c8c0128a299840c6c28e7a167d6956 to your computer and use it in GitHub Desktop.
Save samyak-jain/a2c8c0128a299840c6c28e7a167d6956 to your computer and use it in GitHub Desktop.
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import java.lang.ref.WeakReference;
import io.agora.AgoraAPI;
import io.agora.IAgoraAPI;
public class LoginActivity extends Activity {
private final String TAG = LoginActivity.class.getSimpleName();
private EditText textAccountName;
private TextView textViewVersion;
private String appId;
private String channelName;
private String account;
private boolean enableLoginBtnClick = true;
private String selfAccount;
private final int REQUEST_CODE = 0x01;
private boolean stateSingleMode = false; // single mode or channel mode
private boolean enableChannelBtnClick = true;
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.i("TAG", "method started");
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
appId = getString(R.string.private_app_id);
textAccountName = (EditText) findViewById(R.id.account_name);
textViewVersion = (TextView) findViewById(R.id.login_version);
Intent intent = getIntent();
channelName = intent.getStringExtra(VideoActivity.LOGIN_MESSAGE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment