ANDROID EDITTEXT EXAMPLE
MainActivity.java package com.bcomfirstproject.app; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { Button btnSubmit; EditText name, password, email, dob, phoneno; TextView result; @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); setContentView(R.layout.activity_main); name = (EditText) findViewById(R.id.txtName); password = (EditText) findViewById(R.id.txtPwd); email = (EditText) findViewById(R.id.txtEmai); dob = (EditText) findViewById(R.id.txtDate); phoneno = (EditText) findViewById(R.id.txtPhone); btnSubmit = (Button) findViewById(R.id.btnSend); result = (TextView) findViewById(R.id.resultView); } public void display(View v) { ...