interstitialad not Working Sdk 30

Search This thread

samirisp

New member
May 21, 2018
1
0
26
algerie
mededuct.com
interstitialadhey friend , i have a problem with my code , i use to use this code for interstitialad ads event in previews sdk and it was work perfectly
this my code

myWebView.setOnTouchListener(new View.OnTouchListener(){
int i= 0;
boolean b = true;
@override
public boolean onTouch(View v, MotionEvent event) {
i++;
if(b &&(i >= 800)) {
b=false;
mInterstitialAd.show();
return b;
}
else{
return false;
}

}
});

and this my news one but its crash en interstitialad event
this my news code


myWebView.setOnTouchListener(new View.OnTouchListener(){
int i= 0;
boolean b = true;
@override
public boolean onTouch(View v, MotionEvent event) {
i++;
if(b &&(i >= 80)) {
b=false;
mInterstitialAd.show(MainActivity.this);
return b;
}
else{
return false;
}

}
});


pleas help me
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone