Context context = getApplicationContext();
        CharSequence text = "have a toast thank you ,you've got it!";
        int duration = Toast.LENGTH_SHORT;

        Toast toast = Toast.makeText(context, text, duration);
        toast.show();