I’m a newbie developer, I’m trying to use Heyzap / Fyber Ads mediation, and I need some help with this:
I have an Adapter class (that isn’t an Activity) used for a RecyclerView.
I’ve been using
view.getContext() on many places for the context, but now it asks for “Activity”
This Adapter class contains two
OnClickListeners where i need to insert this:
InterstitialAd.display(// I need to insert "Activity" here);
I’ve been tried with:
this Activity.this (constructor & adapter) Activity.class (constructor & adapter) view.getActivity() ///And 999x other combinations.