Created
November 14, 2018 17:18
-
-
Save samyak-jain/a2c8c0128a299840c6c28e7a167d6956 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
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