我有一个samsung galaxy S2
,我的应用在这款手机和其他设备上完美运行,但在galaxy S3
,nexus 4 or nexus 7
等设备上效果不佳,我不知道是否这是兼容性或解决方案的问题,我真的不知道。
这是android清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.package.name"
android:versionCode="4"
android:versionName="1.5.2" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|s mallestScreenSize" />
<activity
android:name="com.package.name.MainActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.package.name.Derivadas"
android:theme="@android:style/Theme.Light.NoTitleBar"></activity>
<activity
android:name="com.package.name.Integrales"
android:theme="@android:style/Theme.Light.NoTitleBar"></activity>
<activity android:name="com.package.name.Angulos"
android:theme="@android:style/Theme.Light.NoTitleBar"></activity>
</application>
</manifest>
和Logcat:
07-11 05:03:03.586: E/Trace(835): error opening trace file: No such file or directory (2)
07-11 05:03:04.526: D/dalvikvm(835): GC_FOR_ALLOC freed 30K, 6% free 2421K/2572K, paused 62ms, total 64ms
07-11 05:03:04.557: I/dalvikvm-heap(835): Grow heap (frag case) to 3.944MB for 1536016-byte allocation
07-11 05:03:04.636: D/dalvikvm(835): GC_FOR_ALLOC freed <1K, 4% free 3920K/4076K, paused 75ms, total 75ms
07-11 05:03:04.737: D/dalvikvm(835): GC_CONCURRENT freed <1K, 4% free 3920K/4076K, paused 12ms+16ms, total 104ms
07-11 05:03:05.176: D/dalvikvm(835): GC_FOR_ALLOC freed <1K, 4% free 3920K/4076K, paused 41ms, total 41ms
07-11 05:03:05.236: I/dalvikvm-heap(835): Grow heap (frag case) to 7.239MB for 3456016-byte allocation
07-11 05:03:05.326: D/dalvikvm(835): GC_CONCURRENT freed 0K, 3% free 7295K/7452K, paused 23ms+5ms, total 88ms
07-11 05:03:06.676: E/ActivityThread(835): Failed to find provider info for com.google.plus.platform
07-11 05:03:07.296: D/gralloc_goldfish(835): Emulator without GPU emulation detected.
07-11 05:03:07.406: D/dalvikvm(835): DexOpt: --- BEGIN 'ads676178541.jar' (bootstrap=0) ---
07-11 05:03:08.597: D/dalvikvm(835): DexOpt: --- END 'ads676178541.jar' (success) ---
07-11 05:03:08.606: D/dalvikvm(835): DEX prep '/data/data/whao.whaoapps.maths/cache/ads676178541.jar': unzip in 2ms, rewrite 1194ms
07-11 05:03:08.946: I/Ads(835): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL({"preqs":0,"session_id":"9090672342868669928","seq_num":"1","slotname":"a151ce6445b3e0b","u_w":320,"msid":"whao.whaoapps.maths","cap":"m,a","adtest":"on","js":"afma-sdk-a-v6.4.1","bas_off":0,"net":"ed","app_name":"4.android.whao.whaoapps.maths","hl":"en","gnt":3,"carrier":"310260","u_audio":4,"kw":[],"u_sd":1.5,"simulator":1,"ms":"BKHuBfPMypHVJzoPH91E3zLytRCl4wFbiAUKA2O4-oHhE1eMeItrfAHimGqRfBmtDgijRp-flXswn66mYqa3hW6ZtwAeOw650ef1Wy1bB7oKILu0Zt2dcjCNTX_xl7hb_uwhs5xZsPQWTuQ-ai8fR1ixcYoTV7CBtAiXEZPHJmrOzv8TAiSTLn8AHp663V4g5ycVMzlOs7qa_1cXq-BQKFUuCIUQCOuGvNLsfIgSSO7W-1zgIE4jGj2LImf4M1iQKV3wpJuIZ7oyIpaHkJFXZ18bYcDlN6cr2piUNxwPDPLV-sAQmZ6PU7wRCUiL80UyQ12_2a7WcBHJ42p36nwBAA","isu":"B3EEABB8EE11C2BE770B684D95219ECB","format":"320x50_mb","oar":0,"ad_pos":{"height":0,"visible":0,"y":0,"x":0,"width":0},"u_h":533,"pt":1,"bas_on":0,"ptime":0});</script></head><body></body></html>
07-11 05:03:12.647: I/Ads(835): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=9090672342868669928&seq_num=1&u_w=320&msid=whao.whaoapps.maths&cap=m%2Ca&adtest=on&js=afma-sdk-a-v6.4.1&bas_off=0&net=ed&app_name=4.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=1.5&ms=BKHuBfPMypHVJzoPH91E3zLytRCl4wFbiAUKA2O4-oHhE1eMeItrfAHimGqRfBmtDgijRp-flXswn66mYqa3hW6ZtwAeOw650ef1Wy1bB7oKILu0Zt2dcjCNTX_xl7hb_uwhs5xZsPQWTuQ-ai8fR1ixcYoTV7CBtAiXEZPHJmrOzv8TAiSTLn8AHp663V4g5ycVMzlOs7qa_1cXq-BQKFUuCIUQCOuGvNLsfIgSSO7W-1zgIE4jGj2LImf4M1iQKV3wpJuIZ7oyIpaHkJFXZ18bYcDlN6cr2piUNxwPDPLV-sAQmZ6PU7wRCUiL80UyQ12_2a7WcBHJ42p36nwBAA&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=0&u_so=p&imbf=%40installed_markets%40&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f77524dde8&kw_type=broad&gsb=3g&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&eisu=HYUd9wegrsiNWb0yKxYzyFCSe53jBIl75Bbmiv3S7zyKOFjLL54r9eooBW82y28q5swLwX_NKIqTjwess7dsd49TY1gfQzuYzRLPZ8kbdUIwc8sHtgxS6DaV6yvRZ7gZ&et=165&jsv=52" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
07-11 05:03:12.767: I/Ads(835): Ad url modified to http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=9090672342868669928&seq_num=1&u_w=320&msid=whao.whaoapps.maths&cap=m%2Ca&adtest=on&js=afma-sdk-a-v6.4.1&bas_off=0&net=ed&app_name=4.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=1.5&ms=BKHuBfPMypHVJzoPH91E3zLytRCl4wFbiAUKA2O4-oHhE1eMeItrfAHimGqRfBmtDgijRp-flXswn66mYqa3hW6ZtwAeOw650ef1Wy1bB7oKILu0Zt2dcjCNTX_xl7hb_uwhs5xZsPQWTuQ-ai8fR1ixcYoTV7CBtAiXEZPHJmrOzv8TAiSTLn8AHp663V4g5ycVMzlOs7qa_1cXq-BQKFUuCIUQCOuGvNLsfIgSSO7W-1zgIE4jGj2LImf4M1iQKV3wpJuIZ7oyIpaHkJFXZ18bYcDlN6cr2piUNxwPDPLV-sAQmZ6PU7wRCUiL80UyQ12_2a7WcBHJ42p36nwBAA&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=0&u_so=p&imbf=8008&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f77524dde8&kw_type=broad&gsb=3g&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&eisu=HYUd9wegrsiNWb0yKxYzyFCSe53jBIl75Bbmiv3S7zyKOFjLL54r9eooBW82y28q5swLwX_NKIqTjwess7dsd49TY1gfQzuYzRLPZ8kbdUIwc8sHtgxS6DaV6yvRZ7gZ&et=165&jsv=52
07-11 05:03:12.775: I/Ads(835): Request scenario: Online server request.
07-11 05:03:16.185: D/webviewglue(835): nativeDestroy view: 0x2a239cc8
07-11 05:03:16.216: I/Ads(835): onReceiveAd()
07-11 05:03:16.506: D/dalvikvm(835): GC_FOR_ALLOC freed 2049K, 25% free 6750K/8920K, paused 108ms, total 121ms
07-11 05:03:16.585: D/webviewglue(835): nativeDestroy view: 0x2a1b9890
07-11 05:03:16.775: D/TilesManager(835): Starting TG #0, 0x2a1b5858
07-11 05:04:14.522: I/Ads(835): Refreshing ad.
07-11 05:04:14.558: E/ActivityThread(835): Failed to find provider info for com.google.plus.platform
07-11 05:04:14.746: I/Ads(835): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":1,"session_id":"9090672342868669928","seq_num":"2","slotname":"a151ce6445b3e0b","u_w":320,"msid":"whao.whaoapps.maths","cap":"m,a","adtest":"on","js":"afma-sdk-a-v6.4.1","prnl":7739,"bas_off":0,"imbf":"8008","net":"ed","app_name":"4.android.whao.whaoapps.maths","hl":"en","gnt":3,"carrier":"310260","u_audio":4,"kw":[],"u_sd":1.5,"simulator":1,"ms":"JmVDrpHcZ1XPAjUqujq5iy556uCvb-WDw9GsVRy7JkpU9WJlGJu2WEQioxzHwMAaEuuo66yoRZT7eRrWRdsh0efxojDtWUfak1M0BquogEhB6c_cfobMC2xHOu_UEY4lPh_fzfjBg9DXuSSw6ApHGehqVtQAHpc-sWn0n3V9vb8zRruAec0YDxTT_HeTotN8wpr8T3wgHxNp-CeRVBL-_hnwGZ_O_atVxUkuxk7gZz3RvARKZnGGapJ7n17LinJx_VKMsAjdWY3ZeiuXD0nrMTG6rlxIA-QxSRKSWfQ04nJ1kFJhVt7gFBd2cMAXlL1bETggOkzQuVQAH1QcC0Dbrw","isu":"B3EEABB8EE11C2BE770B684D95219ECB","format":"320x50_mb","oar":0,"ad_pos":{"height":75,"visible":1,"y":0,"x":0,"width":480},"u_h":533,"pt":1,"bas_on":0,"ptime":67865,"prl":9429});</script></head><body></body></html>
07-11 05:04:15.376: I/Ads(835): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=1&session_id=9090672342868669928&seq_num=2&u_w=320&msid=whao.whaoapps.maths&cap=m%2Ca&adtest=on&js=afma-sdk-a-v6.4.1&prnl=7739&bas_off=0&imbf=8008&net=ed&app_name=4.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=1.5&ms=JmVDrpHcZ1XPAjUqujq5iy556uCvb-WDw9GsVRy7JkpU9WJlGJu2WEQioxzHwMAaEuuo66yoRZT7eRrWRdsh0efxojDtWUfak1M0BquogEhB6c_cfobMC2xHOu_UEY4lPh_fzfjBg9DXuSSw6ApHGehqVtQAHpc-sWn0n3V9vb8zRruAec0YDxTT_HeTotN8wpr8T3wgHxNp-CeRVBL-_hnwGZ_O_atVxUkuxk7gZz3RvARKZnGGapJ7n17LinJx_VKMsAjdWY3ZeiuXD0nrMTG6rlxIA-QxSRKSWfQ04nJ1kFJhVt7gFBd2cMAXlL1bETggOkzQuVQAH1QcC0Dbrw&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=67865&prl=9429&u_so=p&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f77524dde8&kw_type=broad&askip=1&gsb=3g&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&eisu=WdfoGogF5wX1fgWQUBLx2l1Uc_3IYAbqkysRqD9eUQCqAPW9M0m0bWpfVmVr7hPjuASoe0LZNHxazVC5ddPETxN19igiTpsflklcNvZuUBLhLAi0tU_q24qMBF6RadE9&et=131&jsv=52" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
07-11 05:04:15.376: I/Ads(835): Request scenario: Online server request.
07-11 05:04:16.506: D/webviewglue(835): nativeDestroy view: 0x2a0269e0
07-11 05:04:16.536: I/Ads(835): onReceiveAd()
07-11 05:05:14.680: I/Ads(835): Refreshing ad.
07-11 05:05:14.705: E/ActivityThread(835): Failed to find provider info for com.google.plus.platform
07-11 05:05:14.865: I/Ads(835): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":2,"session_id":"9090672342868669928","seq_num":"3","slotname":"a151ce6445b3e0b","u_w":320,"msid":"whao.whaoapps.maths","cap":"m,a","adtest":"on","js":"afma-sdk-a-v6.4.1","prnl":1216,"bas_off":0,"imbf":"8008","net":"ed","app_name":"4.android.whao.whaoapps.maths","hl":"en","gnt":3,"carrier":"310260","u_audio":4,"kw":[],"u_sd":1.5,"simulator":1,"ms":"8Ao_eKTMiMcoYuMwKd4ClHnoczP9geciTLxSeyFBTbIWIm9rRt8xtXqqeBBhByZu8NQ46lwCYliVm2FbJtuvufbRQdb7CGX11uzxIXXTBLq_02r-Ieat8_k2kCyOLxhmTy_-jWPRgdRF-B02Jlp5KOejWtjR9tHUl_IqchktfrjGh6XlfYI4XDMH6iEvuceO6unYHY2sb736HR_UwNuPhpamWbT0VyZyHHY72Ny7_SG8q9ArisEgHhN-bf9THA7rGE1Z0itfjZWXHYs7rQ5uiFZqfOHAY6UyUF-YQMI7J4XK0j7AqetGlIMq96dMlJqQADNwyWHv_y2QEa_zYI-rfQ","isu":"B3EEABB8EE11C2BE770B684D95219ECB","format":"320x50_mb","oar":0,"ad_pos":{"height":75,"visible":1,"y":0,"x":0,"width":480},"u_h":533,"pt":1,"bas_on":0,"ptime":127999,"prl":1880});</script></head><body></body></html>
07-11 05:05:15.515: I/Ads(835): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=2&session_id=9090672342868669928&seq_num=3&u_w=320&msid=whao.whaoapps.maths&cap=m%2Ca&adtest=on&js=afma-sdk-a-v6.4.1&prnl=1216&bas_off=0&imbf=8008&net=ed&app_name=4.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=1.5&ms=8Ao_eKTMiMcoYuMwKd4ClHnoczP9geciTLxSeyFBTbIWIm9rRt8xtXqqeBBhByZu8NQ46lwCYliVm2FbJtuvufbRQdb7CGX11uzxIXXTBLq_02r-Ieat8_k2kCyOLxhmTy_-jWPRgdRF-B02Jlp5KOejWtjR9tHUl_IqchktfrjGh6XlfYI4XDMH6iEvuceO6unYHY2sb736HR_UwNuPhpamWbT0VyZyHHY72Ny7_SG8q9ArisEgHhN-bf9THA7rGE1Z0itfjZWXHYs7rQ5uiFZqfOHAY6UyUF-YQMI7J4XK0j7AqetGlIMq96dMlJqQADNwyWHv_y2QEa_zYI-rfQ&format=320x50_mb&oar=0&u_h=533&bas_on=0&ptime=127999&prl=1880&u_so=p&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f77524dde8&kw_type=broad&askip=2&gsb=3g&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&eisu=Obp-q4HxYef28zUGyULfy6nSX-JLhOj5fHyM8_XJhr0_aWlYtBbxOhGuu7s_zaH6ZB3Q-8Bq1fqwzDc_cAeBTzJ-4tfAwPfEPAdHWlcDXNKFBQd0koPIkCByRyHuuI-P&et=58&jsv=52" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
07-11 05:05:15.515: I/Ads(835): Request scenario: Online server request.
07-11 05:05:16.575: D/webviewglue(835): nativeDestroy view: 0x2a151eb0
07-11 05:05:16.585: I/Ads(835): onReceiveAd()
07-11 05:06:14.809: I/Ads(835): Refreshing ad.
07-11 05:06:14.846: E/ActivityThread(835): Failed to find provider info for com.google.plus.platform
07-11 05:06:14.976: I/Ads(835): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":3,"session_id":"9090672342868669928","seq_num":"4","slotname":"a151ce6445b3e0b","u_w":320,"msid":"whao.whaoapps.maths","cap":"m,a","adtest":"on","js":"afma-sdk-a-v6.4.1","prnl":1254,"bas_off":0,"imbf":"8008","net":"ed","app_name":"4.android.whao.whaoapps.maths","hl":"en","gnt":3,"carrier":"310260","u_audio":4,"kw":[],"u_sd":1.5,"simulator":1,"ms":"-N8KNTevJfKOSPD66rsYWhNKV2ZAONfrzWZ8L-H74zD31228YDSuD5jenr_clZMtCFewlfIH4nHTp0Or7h86RSU2CEdMXAP3hCUlyzXkf3CrhYgWYe8okdEK9w4itJ4EtAk8nTTUljELDeQ2deNGEhykVnJhpe3APNCclHkow0SEKdf-9rOpcFOxEG806MWAM2yj_w1MEiJb- iLWhX2YpDGpp2rN6r6Gxl0jQ7CrlZ3Ki6OrklevMebye_T7Tl5THO0uXiURI1HEbGl- 9u9qgitx8h6rA_zh79s1blLgKjfpslszqXA5bDYo4Cl169JpjCz2EVyondvpDrsX_pkLLA","isu":"B3EEABB8EE11 C2BE770B684D95219ECB","format":"320x50_mb","oar":0,"ad_pos":{"height":75,"visible":1,"y":0,"x":0,"width":480},"u_h":533,"pt":1,"bas_on":0,"ptime":188128,"prl":1804});</script></head><body></body></html>
07-11 05:06:15.706: I/Ads(835): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=3&session_id=9090672342868669928&seq_num=4&u_w=320&msid=whao.whaoapps.maths&cap=m%2Ca&adtest=on&js=afma-sdk-a-v6.4.1&prnl=1254&bas_off=0&imbf=8008&net=ed&app_name=4.android.whao.whaoapps.maths&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=1.5&ms=-N8KNTevJfKOSPD66rsYWhNKV2ZAONfrzWZ8L-H74zD31228YDSuD5jenr_clZMtCFewlfIH4nHTp0Or7h86RSU2CEdMXAP3hCUlyzXkf3CrhYgWYe8okdEK9w4itJ4EtAk8nTTUljELDeQ2deNGEhykVnJhpe3APNCclHkow0SEKdf-9rOpcFOxEG806MWAM2yj_w1MEiJb-iLWhX2YpDGpp2rN6r6Gxl0jQ7CrlZ3Ki6OrklevMebye_T7Tl5THO0uXiURI1HEbGl-9u9qgitx8h6rA_zh79s1blLgKjfpslszqXA5bDYo4Cl169JpjCz2EVyondvpDrsX_pkLLA&format=320x50_mb&oar =0&u_h=533&bas_on=0&ptime=188128&prl=1804&u_so=p&output=html®ion=mobile_app&u_tz=0&client_sdk=1&ex=1&slotname=a14e8f77524dde8&kw_type=broad&askip=3&gsb=3g&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&eisu=di6TmRN8Wn9R7ZAGrCBeNSZjA4JFqH4lzPCJBMDLdn6PT6bAdwvfVAl2gC-QrhNHpbjzDjcIqNE8-FXui_3sCryh386jH2T4-C-S2smB2MjQUSKjvhX-MJImMrUHQtNs&et=107&jsv=52" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
07-11 05:06:15.706: I/Ads(835): Request scenario: Online server request.
07-11 05:06:16.646: D/webviewglue(835): nativeDestroy view: 0x2a1b20d8
07-11 05:06:16.646: I/Ads(835): onReceiveAd()
告诉我你是否还需要其他东西
P.D:应用程序在nexus 4或nexus 7模拟器中工作正常但在设备中没有工作