I\'m trying to use Toast inside OnCLickListener. My code triggers the following error:
Toast
OnCLickListener
The method makeText(Context, CharSequence, int)
try this
public void onClick(View arg0) { EditText name = (EditText)findViewById(R.id.name); String Lname = name.getText().toString(); Toast.makeText(arg0.getContext(), Lname, Toast.LENGTH_SHORT).show(); }