@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
txtUserName=(EditText)this.findViewById(R.id.txtUname);
txtPassword=(EditText)this.findViewById(R.id.txtPwd);
btnLogin=(Button)this.findViewById(R.id.btnLogin);
btnLogin=(Button)this.findViewById(R.id.btnLogin);
btnLogin.setOnClickListener(new OnClickListener() {
Button next = (Button) findViewById(R.id.Button01);
error1: next.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
Intent myIntent = new Intent(view.getContext(), AddName.class);
startActivityForResult(myIntent, 0);
}}
error2: )
};
if((txtUserName.getText().toString()).equals(txtPassword.getText().toString())){
Toast.makeText(LoginappActivity.this, "Login Successful",Toast.LENGTH_LONG).show();
} else{
Toast.makeText(LoginappActivity.this, "Invalid Login",Toast.LENGTH_LONG).show();
}
}
}
i) 设定了从一种意图到另一种意图的标志性申请。 另一名java公司进行罚款
差错1:因子发生先天错误,AnnotationName预计相反。
error2: Multiple markers at this line
-Syntax error, insert "EnumBody" to complete EnumDeclaration
-Syntax error, insert "enum Identifier" to complete EnumHeaderName
-Syntax error, insert ")" to complete Expression
-Syntax error, insert "}" to complete ClassBody