I am getting error while creating a Toast
Toast
Toast toast = Toast.makeText(this, text, duration);
I am getting cannot resolve ma
ma
Try Toast toast = Toast.makeText(getActivity(), text, duration);
Toast toast = Toast.makeText(getActivity(), text, duration);
You may also wish to append .show() if you want it to display
.show()