public static Toast makeText( Context context, int resId, int duration)
As in above code, Context
is needed to make a Toast
.
Explanation given by various resources is that Context
is needed by the Toast class to be able to find and use the string’s resource ID. I am not able to understand why it is so. How does Context help in finding resource?