2016-03-31 7 views
2

Ich habe ein Problem. Ich habe AdColony-Anzeigen mit Admob-Vermittlung implementiert. Es funktioniert selbst. Dann habe ich Vungle-Anzeigen mit Admob-Vermittlung implementiert. Das Problem besteht darin, dass AdColony für jede der Aktivitäten AdColony.Pause() und AdColony.Resume() in überschriebenen (onPause, onResume) -Methoden benötigt. Fast jedes Mal, wenn ich Vungle ad starte, erhalte ich Force Close mit den folgenden Informationen.
Ich sehe, dass meine Fähigkeiten nicht so hoch entwickelt sind, weil ich nicht weiß, wie ich damit umgehen soll. Interstitial-Anzeigen funktionieren einwandfrei. Problem ist nur bei belohnten Anzeigen. Kann jemand raten, was damit zu tun ist? Problem könnte neu sein, weil Google Rewarded Anzeigen Vermittlung am 15. März angekündigt 2016.AdColony verursacht Force schließen während Vungle Ad

03-31 20:38:42.869 19578-20093/? E/AndroidRuntime: FATAL EXCEPTION: Thread-107283 
               Process: org.ovh.EmpireSTG, PID: 19578 
               com.jirbo.adcolony.AdColonyException: AdColony.configure() must be called before any other AdColony methods. If you have called AdColony.configure(), the Activity reference you passed in via AdColony.configure()/AdColony.resume() is null OR you have not called AdColony.resume() as appropriate. 
                at com.jirbo.adcolony.a.b(SourceFile:181) 
                at com.jirbo.adcolony.a.e(SourceFile:222) 
                at com.jirbo.adcolony.AdColonyV4VCAd.<init>(SourceFile:40) 
                at com.jirbo.adcolony.AdColonyAdapter.a(SourceFile:427) 
                at com.jirbo.adcolony.AdColonyAdapter$9.run(SourceFile:485) 
                at java.lang.Thread.run(Thread.java:818) 

Antwort

0

Implementierung onResume und onPause in der Aktivität, die die Anzeige funktioniert für mich startet:

@Override 
protected void onResume() 
{ 
    super.onResume(); 
    if (AdColony.isConfigured()) AdColony.resume(this); 
} 

@Override 
protected void onPause() 
{ 
    super.onPause(); 
    if (AdColony.isConfigured()) AdColony.pause(); 
} 
Verwandte Themen