Applications – Toast in Android


txtView = (TextView) findViewById (R.id.txtView);
edtPhone = findViewById (R.id.edtPhone);
EditText edtName = findViewById (R.id.edtPhone);
Toast.makeText (MainActivity.this, "your name is" + edtName.getText (). ToString (), Toast.LENGTH_LONG) .show ();

When I start the application, only "Your name is" is displayed.