Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button = buttonX;
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.fourthactivity);
- buttonX = (Button)findViewById(R.id.button1);
- buttonX.setOnClickListener(
- new View.OnClickListener()
- {
- public void onClick(View view)
- {
- EditText text = (EditText)findViewById(R.id.editText1);
- String user = text.getText().toString();
- EditText text = (EditText)findViewById(R.id.editText2);
- String pass = text.getText().toString();
- if(){
- TextView successTextview = (TextView)findViewById(R.id.textView1);
- successTextview.setText("Success!");
- }
- else{
- TextView errorTextview = (TextView)findViewById(R.id.textView1);
- errorTextview.setText("Error!");
- }
- }
- }
- );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement