I have integrated startapp in my application so that when you change display advertising activity but when you click on advertising this error:
java.lang.RuntimeException: java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-1082'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
at android.webkit.WebView.checkThread(WebView.java:1927)
at android.webkit.WebView.destroy(WebView.java:641)
at com.startapp.android.publish.AppWallActivity$6.run(Unknown Source)
at com.startapp.android.publish.d.l$a$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-1082'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
at android.webkit.WebView.checkThread(WebView.java:1918)
Does anyone know why it can be?
This is the code I use to open it:
startAppAd.showAd(new AdDisplayListener()
{
public void adDisplayed(Ad arg0) {
// TODO Auto-generated method stub
}
public void adHidden(Ad arg0) {
Intent i = new Intent(getApplicationContext(), SeleccionarLigaActivity.class);
i.putExtra("PrimeraVez", primeraVez);
startActivity(i);
}
});
I use andengine and I tested with version 2.0.4 and 2.0.5 of Startapp.
A greeting and thanks.