无法在Samsung Galaxy Tab上显示AdMob横幅

时间:2011-11-30 07:32:12

标签: android admob galaxy-tab

我有一个问题。 我正在使用admob横幅创建一个应用程序。 在真实的设备上,HTСDesire S代码可以顺畅地显示横幅。但在三星Galaxy Tab而不是横幅显示:

http://s1.ipicture.ru/uploads/20111130/5YdXFQI6.bmp

问题是什么?如何解决?


在模拟器上安装和运行应用程序时,这就是LogCat的全部内容:

12-09 11:30:35.758: DEBUG/dalvikvm(243): GC_EXPLICIT freed 233K, 5% free 6392K/6727K, paused 3ms+2ms
12-09 11:30:38.685: DEBUG/AndroidRuntime(610): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-09 11:30:38.685: DEBUG/AndroidRuntime(610): CheckJNI is ON
12-09 11:30:39.365: DEBUG/AndroidRuntime(610): Calling main entry com.android.commands.pm.Pm
12-09 11:30:39.395: DEBUG/AndroidRuntime(610): Shutting down VM
12-09 11:30:39.416: INFO/AndroidRuntime(610): NOTE: attach of thread 'Binder Thread #3' failed
12-09 11:30:39.416: DEBUG/dalvikvm(610): GC_CONCURRENT freed 99K, 84% free 334K/2048K, paused 1ms+1ms
12-09 11:30:39.416: DEBUG/dalvikvm(610): Debugger has detached; object registry had 1 entries
12-09 11:30:40.547: DEBUG/AndroidRuntime(621): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-09 11:30:40.547: DEBUG/AndroidRuntime(621): CheckJNI is ON
12-09 11:30:41.156: DEBUG/AndroidRuntime(621): Calling main entry com.android.commands.pm.Pm
12-09 11:30:41.224: DEBUG/dalvikvm(335): GC_EXPLICIT freed 291K, 8% free 6359K/6855K, paused 3ms+2ms
12-09 11:30:41.375: DEBUG/dalvikvm(335): GC_EXPLICIT freed 3K, 8% free 6358K/6855K, paused 3ms+3ms
12-09 11:30:41.389: WARN/ActivityManager(78): No content provider found for: 
12-09 11:30:41.407: WARN/ActivityManager(78): No content provider found for: 
12-09 11:30:41.435: DEBUG/PackageParser(78): Scanning package: /data/app/vmdl1293212005.tmp
12-09 11:30:41.525: DEBUG/PackageManager(78): Scanning package com.Ad.TestApp
12-09 11:30:41.525: INFO/PackageManager(78): Unpacking native libraries for /data/app/com.Ad.TestApp-1.apk
12-09 11:30:41.985: DEBUG/dalvikvm(630): DexOpt: load 116ms, verify+opt 221ms
12-09 11:30:42.004: DEBUG/PackageManager(78):   Activities: com.Ad.TestApp.TestApp com.google.ads.AdActivity
12-09 11:30:42.014: INFO/ActivityManager(78): Force stopping package com.Ad.TestApp uid=10037
12-09 11:30:42.174: DEBUG/PackageManager(78): New package installed in /data/app/com.Ad.TestApp-1.apk
12-09 11:30:42.365: DEBUG/PackageManager(78): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
12-09 11:30:42.374: DEBUG/PackageManager(78): generateServicesMap(android.content.SyncAdapter): 4 services unchanged
12-09 11:30:42.615: INFO/dalvikvm(78): Jit: resizing JitTable from 2048 to 4096
12-09 11:30:42.615: INFO/AccountTypeManager(196): Loaded meta-data for 1 account types, 0 accounts in 6ms
12-09 11:30:42.695: WARN/RecognitionManagerService(78): no available voice recognition services found
12-09 11:30:43.105: DEBUG/dalvikvm(158): GC_CONCURRENT freed 6523K, 34% free 14349K/21639K, paused 4ms+3ms
12-09 11:30:43.325: DEBUG/dalvikvm(78): GC_EXPLICIT freed 1291K, 51% free 14265K/28615K, paused 7ms+36ms
12-09 11:30:43.345: DEBUG/AndroidRuntime(621): Shutting down VM
12-09 11:30:43.374: DEBUG/dalvikvm(621): GC_CONCURRENT freed 100K, 84% free 339K/2048K, paused 1ms+1ms
12-09 11:30:43.387: INFO/AndroidRuntime(621): NOTE: attach of thread 'Binder Thread #3' failed
12-09 11:30:43.387: DEBUG/jdwp(621): Got wake-up signal, bailing out of select
12-09 11:30:43.387: DEBUG/dalvikvm(621): Debugger has detached; object registry had 1 entries
12-09 11:30:43.915: DEBUG/AndroidRuntime(635): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-09 11:30:43.915: DEBUG/AndroidRuntime(635): CheckJNI is ON
12-09 11:30:44.524: DEBUG/AndroidRuntime(635): Calling main entry com.android.commands.am.Am
12-09 11:30:44.555: INFO/ActivityManager(78): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.Ad.TestApp/.TestApp } from pid 635
12-09 11:30:44.567: WARN/WindowManager(78): Failure taking screenshot for (230x135) to layer 21005
12-09 11:30:44.595: INFO/ActivityManager(78): Start proc com.Ad.TestApp for activity com.Ad.TestApp/.TestApp: pid=643 uid=10037 gids={3003}
12-09 11:30:44.614: DEBUG/AndroidRuntime(635): Shutting down VM
12-09 11:30:44.624: DEBUG/dalvikvm(635): GC_CONCURRENT freed 98K, 83% free 360K/2048K, paused 1ms+1ms
12-09 11:30:44.645: DEBUG/jdwp(635): adbd disconnected
12-09 11:30:44.655: INFO/AndroidRuntime(635): NOTE: attach of thread 'Binder Thread #3' failed
12-09 11:30:45.554: DEBUG/TabletStatusBar(124): lights on
12-09 11:30:46.164: DEBUG/dalvikvm(643): GC_FOR_ALLOC freed 45K, 4% free 6372K/6595K, paused 56ms
12-09 11:30:46.174: INFO/dalvikvm-heap(643): Grow heap (frag case) to 6.768MB for 513744-byte allocation
12-09 11:30:46.304: DEBUG/dalvikvm(643): GC_FOR_ALLOC freed <1K, 4% free 6873K/7111K, paused 97ms
12-09 11:30:46.395: DEBUG/dalvikvm(643): GC_CONCURRENT freed <1K, 4% free 6873K/7111K, paused 3ms+3ms
12-09 11:30:47.035: INFO/Ads(643): To get test ads on this device, call adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
12-09 11:30:47.098: INFO/Ads(643): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":0,"u_sd":1,"slotname":"a14ebb0f08880c2","u_w":1280,"msid":"com.Ad.TestApp","simulator":1,"cap":"m,a","js":"afma-sdk-a-v4.3.1","isu":"B3EEABB8EE11C2BE770B684D95219ECB","cipa":0,"format":"320x50_mb","net":"ed","app_name":"1.android.com.Ad.TestApp","hl":"en","u_h":752,"u_audio":4});</script></head><body></body></html>
12-09 11:30:47.334: INFO/ActivityManager(78): Displayed com.Ad.TestApp/.TestApp: +2s753ms
12-09 11:30:47.345: DEBUG/TabletStatusBar(124): lights on
12-09 11:30:48.124: DEBUG/dalvikvm(158): GC_EXPLICIT freed 628K, 31% free 15014K/21639K, paused 2ms+3ms
12-09 11:30:48.705: WARN/webcore(643): Can't get the viewWidth after the first layout
12-09 11:30:48.904: INFO/Ads(643): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&u_sd=1&slotname=a14ebb0f08880c2&u_w=1280&msid=com.Ad.TestApp&cap=m%2Ca&js=afma-sdk-a-v4.3.1&isu=B3EEABB8EE11C2BE770B684D95219ECB&cipa=0&format=320x50_mb&net=ed&app_name=1.android.com.Ad.TestApp&hl=en&u_h=752&u_audio=4&u_so=l&output=html&region=mobile_app&u_tz=-180&ex=1&client_sdk=1&pto=0", "afmaNotifyDt": "null">
12-09 11:30:49.015: WARN/webcore(643): Can't get the viewWidth after the first layout
12-09 11:30:49.034: INFO/Ads(643): onReceiveAd()
12-09 11:30:49.655: DEBUG/dalvikvm(158): GC_CONCURRENT freed 1996K, 31% free 14990K/21639K, paused 4ms+7ms
12-09 11:30:52.494: DEBUG/dalvikvm(353): GC_EXPLICIT freed 53K, 5% free 6296K/6595K, paused 3ms+2ms
12-09 11:30:57.555: DEBUG/dalvikvm(158): GC_EXPLICIT freed 22K, 31% free 14976K/21639K, paused 4ms+3ms
12-09 11:31:00.015: DEBUG/SntpClient(78): request time failed: java.net.SocketException: Address family not supported by protocol

我稍后会在明天发布来自真实设备的日志。

0 个答案:

没有答案