Eclipseは私を示しています:行のこの行に複数のマーカー:public void sendConnection(View view)
誰かが私を助けることができれば、どうもありがとう
btr = (Button)findViewById(R.id.connection);
btr.setOnClickListener(new View.OnClickListener() {
public void onClick(View v)
{
EditText text = (EditText)findViewById(R.id.passwordedit);
String str = text.getText().toString();
if(str.equals("1234"))
{
public void sendConnection(View view)
{
Intent intent = new Intent(this, AddMasterNumber.class);
startActivity(intent);
}
}
else
{
AlertDialog alertdialog = new AlertDialog.Builder(MainActivity.this).create();
alertdialog.setTitle("Wrong Password");
alertdialog.setIcon(R.drawable.wrongpassword);
alertdialog.setMessage("The password you entered is incorrect, please try again!");
alertdialog.show();
}
}
});