java - Android - after splash scrren app stuck - can open ads - only on Android 4.4+ -


I'v created app, which has a splash screen, and after loading the app ad, the splash screen has gone and The ad is open (full screen).

Its working on Android 2.3 to 4.2 (made for APK 8), but it is stuck at 4.4+ - it only displays the Splash Screen logo but does not let the advertisement itself ( 5/4, Nexus 4/5 check).

BTW - I have 4.4 Jar:

Enter image details here

splash_screen_logo.java

  public class splash_screen_logo activity {personal interstitial ad interstitial; @ Override Protected Zero (InstanceStat saved from bundle) {// Todo auto-generated method stub super. Connet (Saved Instantstate); SetContentView (R.layout.splash_screen_logo); // Create intermediate interstitial = new interstitial (this); Interstitial.setAdUnitId ("*****"); // ID deleted // create ad request AdRequest adRequest = new AdRequest.builder (). Build (); // Start your interstitial loading. Interstitial.loadAd (adRequest); // Start your intermediate loading displayInterstitial (); Interstitial.setAdListener (new AdListener) {public (zero) (loaded) (expired); displayInterstitial ();} @OrrideAdClosed on public zeros () {// TODO auto generated method stab super.onAdClosed (); intent_openStartingPage = new intent (splash_screen_logo.this, MainActivity.class); startActivity (intent_openStartingPage);}}); } Public Zero Exposes Interstitial (if (interstitial.isloaded) {interstitial.show (); Why is it stuck in Android 4.4?   

P> You have not provided enough information to debug your question but you should not be not showing an intermediate phone from the embedded Because it is in a very bad user experience.

Calling over from OnAdLoaded is also not a good idea. This means that your activity will expire when you receive an ad, potentially before your activity or your ad will get a chance to appear.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -