I have seen a number of questions on cancelling toast. None of them is working.
I have a custom Toast. The code for that is all but one line same as http://developer.an
Use this code for custom text:
LayoutInflater mInflater=LayoutInflater.from(context); View view=mInflater.inflate(R.layout.tost_layout,null); Toast toast=new Toast(this); toast.setView(view); toast.show();