Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - AdMob blocking UIThread may cause ANR-Message

AdMob blocking UIThread may cause ANR-Message

Put your problem here if it does not fit any of the other categories.

AdMob blocking UIThread may cause ANR-Message

Postby jenetic.bytemare » Fri Feb 11, 2011 2:08 pm

Hello everybody.

I implemented the AdMob SDK to my application.

The problem I face is that when I create a new instance of AdView

Code: Select all
myAdView = new AdView( myActivity );


this operation has to be performed from the UIThread.

Code: Select all
myActivity.runOnUiThread( ... )


I noticed, that the constructor of com.admob.android.ads.AdView will BLOCK the current thread till an internet connection is being made. If the emulator's or device's network connection is offline, it will BLOCK more than five seconds. If a user event ( pointer-operation, keypress etc. ) arrives in this time, my application will show up the ANR-Dialog "Sorry! Activity .. is not responding."

I did not find anything about this issue anywhere and I wonder why ..!

I informed the AdMob support team. If I get a solution I will post it here.

If anyone has the same problem or knows what to do here, please leave me a mesage.

Thanks a lot!

Greetings

jenetic
jenetic.bytemare
Freshman
Freshman
 
Posts: 3
Joined: Fri Sep 17, 2010 8:22 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: MSNbot Media and 11 guests