I'm starting on android and I'm doing a program in which I have several EditText
and when I click on a button I send a Toast with all the information of each of the Edit text, how can I send it the toast but with the information of each of the EditText
but in a Toast
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button butoon = (Button)findViewById(R.id.button);
butoon.setOnClickListener(this);
}
public void onClick(View v)
{
EditText text = (EditText)findViewById(R.id.editText_Nombre);
Toast toast = Toast.makeText(getApplicationContext(),"La reservacion ",Toast.LENGTH_SHORT
);
Toast(text);
toast.show();
}
private Toast Toast(EditText text)
{
return null;
}
}