How to check if adview currently has ad running?The question about How to check if adview has ad running? 

When I develop oen Android app, I encounted the problem. Now, I setted an adView that is launched whenever an activity is launched.

What’s I want is to check if the adView already has an Ad running and if it does then it continues running that Ad , however, if it does not have an Ad running then I would like to load and Ad intho that adView.

This is the code currently:

private AdView mAdView;

mAdView = (AdView)view.findViewById(R.id.adViewEvent);
        AdRequest adRequest = new AdRequest.Builder().build();
        mAdView.loadAd(adRequest);


How to check if adview currently has ad running?The avaliable solution to How to check if adview has ad running? 

    adView.isShown();

this method return the status of ad whether it is showing to user or not you can use this. method in if else structure

if(!adView.isShown())
{
AdRequest adRequest = new AdRequest.Builder().build();
    mAdView.loadAd(adRequest);
}