leadbolt广告导致许多asynctasks - 广告刷新率? [英] leadbolt ads causes many asynctasks - refresh rate for ads?

查看:136
本文介绍了leadbolt广告导致许多asynctasks - 广告刷新率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用leadbolt广告它使我在设备运行多个应用程序asynctasks和崩溃:

Using leadbolt ads it causes my app in the device to run many asynctasks and it crashes:

Uncaught handler: thread main exiting due to uncaught exception
05-22 20:16:08.005: W/System.err(13637): java.io.FileNotFoundException: /data/logcat_0.txt (Permission denied)
05-22 20:16:08.005: E/AndroidRuntime(13637): FATAL EXCEPTION: main
05-22 20:16:08.005: E/AndroidRuntime(13637): java.util.concurrent.RejectedExecutionException: pool=128/128, queue=10/10
05-22 20:16:08.005: E/AndroidRuntime(13637):    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1961)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:794)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1315)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.AsyncTask.execute(AsyncTask.java:394)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at com.hqiachcfpy.AdController.loadIcon(Unknown Source)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at com.hqiachcfpy.s.onAdOptin(Unknown Source)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at com.hqiachcfpy.AdOptinRequest.onPostExecute(Unknown Source)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.AsyncTask.finish(AsyncTask.java:417)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.AsyncTask.access$300(AsyncTask.java:127)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.os.Looper.loop(Looper.java:130)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at android.app.ActivityThread.main(ActivityThread.java:3683)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at java.lang.reflect.Method.invokeNative(Native Method)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at java.lang.reflect.Method.invoke(Method.java:507)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:895)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:653)
05-22 20:16:08.005: E/AndroidRuntime(13637):    at dalvik.system.NativeStart.main(Native Method)
05-22 20:16:08.045: W/System.err(13637): java.io.FileNotFoundException: /data/plog.log (Permission denied)

此外,它给了我所有的时间:

Also , it gives me all the time:

GC_CONCURRENT freed 402K, 48% free 3271K/6279K, external 657K/1169K, paused 4ms+6ms

在code我用的是:

The code I am using is:

 //Leadbolt code
        myController = new AdController(this, "111111");
        myController.loadStartAd("22222222", "222222");

public void onDestroy()
    {
        myController.destroyAd();
        super.onDestroy();
    }

为什么我这个问题?

Why am I having this problem?

此外,有没有任何需要定义广告的刷新率?

Also, is there any need to define any refresh rate for the ads?

例如对于广告的通知你可以从leadboltnetwork定义它们。

For example for the Notification ads you can define them from leadboltnetwork.

有关应用程序添加?还是应用程序图标?

For App Add?Or App Icon?

-------------------- UPDATE -------------------------- -----

--------------------UPDATE-------------------------------

我发现,如果我激活的Internet连接,然后应用程序并没有给上述所有!而且不会崩溃!它工作正常!

I noticed that if I activate internet connection , then the app doesn't give all the above!And doesn't crash!It works fine!

推荐答案

好吧,我用从leadbolt另一个SDK和解决的问题。

Ok, I used another sdk from leadbolt and the problem solved.

(我仍然有垃圾回收虽然)

(I still have garbage collection though)

这篇关于leadbolt广告导致许多asynctasks - 广告刷新率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆