The solution shouldn't be hard to find, but you are asking " how to build a car", so the more probable answer will be " get 4 tires, a driving wheel, a motor and stick all inside a chassis!"
It all depends on how you are creating your toastmessage, if it's a "simple" toast message, which is deprecated, or if it is dialog based... so...
A bit of code will HELP US HELP YOU