I want to know the difference between the two contexts in the two Toasts below , when to use this & when to use getActicity ?
Toast.makeText(getActivity() , "Text" ,Toast.LENGTH_LONG).show();
Toast.makeText(this , "Text" ,Toast.LENGTH_LONG).show();