java - Don't show ads for Android API 8 or lower -


Users with Android version 2.2 (API 8) do not appreciate the ads in my Android application. I want to disable ads for this orroid version or less. Is there any such type if / else statement that prevents showAdsBanner () and showAdsInterstitial () functions from being loaded? This way ads will not be loaded and will be shown to my users.

  DroidGap applies in the public category app AdListener {Personal handler mHandler = new Handler (); Private Ad Visual Ads; Private Interstelliad Interstitial; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); Super.loadUrl (Config.getStartUrl ()); ShowAdsBanner (); MHandler.postDelayed (new Runnabal) (Public run zero () {showAdsInterstitial ();}}, 2500); }}   

I am quite new to Java and I can not get a solution to work. I would greatly appreciate any help. Thank you

  if (Build.VERSION.SDK_INT> 8 } {ShowAdsBanner (); MHandler.postDelayed (new Runnabal) (Public run zero () {showAdsInterstitial ();}}, 2500); }    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -