Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.sourceit.butterknife;
- import androidx.appcompat.app.AppCompatActivity;
- import butterknife.BindView;
- import butterknife.ButterKnife;
- import butterknife.OnClick;
- import butterknife.OnTextChanged;
- import android.content.Intent;
- import android.os.Bundle;
- import android.text.Editable;
- import android.text.TextWatcher;
- import android.view.View;
- import android.widget.Button;
- import android.widget.EditText;
- import android.widget.Toast;
- public class MainActivity extends AppCompatActivity {
- @BindView(R.id.input_text)
- EditText editText;
- @BindView(R.id.button)
- Button button;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- ButterKnife.bind(this);
- }
- @OnClick(R.id.button)
- public void onButtonClick() {
- Intent intent = new Intent(this, PasswordActivity.class);
- intent.putExtra(Intent.EXTRA_EMAIL, editText.getText().toString());
- startActivity(intent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement