Here is how to create your own singleton class for toast messages,
If your application need to show success, warning and the danger messages for different use cases you can use this class after you have modified it to your own specifications.
public class ToastGenerate {
private stati...