I hide banner ads while playing and show on game over screen but while playing game lags. If I disable ads then there is no lag. Or if I connect to wi-fi, again no lag, but with mobile data it lags. Can I do network opertions on a seperate thread? I think Asynctask is only for loading ads but not for refreshing.
Hi,
I have added this code snippet to my Activity’s onCreate method and it works perfect:
Thread[] tarray=new
Thread[20];
Thread.enumerate(tarray);
for (byte i=0;i<20;i++){
if (tarray[i]!= null) {
tarray[i].setPriority(Thread.MAX_PRIORITY);
}
}
But I am not sure if this causes any other problems.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/yfbDpXNs40o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This works only for test ads but not for real ads.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.