android - My webview doesn't work on my app, It worked when the files were locally stored -


my problem used have super.loadurl code cordova leading file:///android_asset/ directory, , worked fine.. 100% , took bit load working fine. made files hosted on website take off whopping 197mb off app make lighter , uploadable, gave me "application error- connection server unsuccessful" tried using "webview" code , used example "www.google.com" , worked fine. tried using site, , change color of screen bg in site, nothing else show up. tried making simple html file small text , changed index.html it, , loaded text fine.. i'm lost, have no idea try or do. please lead me in right direction.

`110-06 12:15:26.355: d/dalvikvm(1102): gc_for_alloc freed 46k, 5% free 2933k/3084k, paused 61ms, total 63ms 10-06 12:15:26.565: d/dalvikvm(1102): gc_for_alloc freed 291k, 12% free 3156k/3548k, paused 18ms, total 20ms 10-06 12:15:26.604: d/dalvikvm(1102): gc_for_alloc freed 2k, 9% free 3258k/3548k, paused 25ms, total 26ms 10-06 12:15:26.604: i/dalvikvm-heap(1102): grow heap (frag case) 4.353mb 1127536-byte allocation 10-06 12:15:26.654: d/dalvikvm(1102): gc_for_alloc freed <1k, 7% free 4359k/4652k, paused 43ms, total 43ms 10-06 12:15:27.074: e/activitythread(1102): failed find provider info com.google.plus.platform 10-06 12:15:27.084: i/ads(1102): test ads on device, call adrequest.addtestdevice(adrequest.test_emulator); 10-06 12:15:27.714: d/dalvikvm(1102): dexopt: --- begin 'ads1928896260.jar' (bootstrap=0) --- 10-06 12:15:27.734: d/dalvikvm(1102): gc_for_alloc freed 322k, 9% free 4657k/5080k, paused 107ms, total 111ms 10-06 12:15:27.734: i/choreographer(1102): skipped 51 frames!  application may doing work on main thread. 10-06 12:15:27.994: d/gralloc_goldfish(1102): emulator without gpu emulation detected. 10-06 12:15:28.084: d/dalvikvm(1102): dexopt: --- end 'ads1928896260.jar' (success) --- 10-06 12:15:28.084: d/dalvikvm(1102): dex prep '/data/data/com.croruptdesigns.gtav_themanual/cache/ads1928896260.jar': unzip in 1ms, rewrite 362ms 10-06 12:15:28.335: i/ads(1102): adrequesturlhtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>afma_getsdkconstants();afma_buildadurl({"preqs":0,"session_id":"17339870006830476368","seq_num":"1","slotname":"a1524e277372095","u_w":384,"msid":"com.croruptdesigns.gtav_themanual","cap":"m,a","js":"afma-sdk-a-v6.4.1","bas_off":0,"net":"ed","app_name":"1.android.com.croruptdesigns.gtav_themanual","hl":"en","gnt":3,"carrier":"310260","u_audio":4,"kw":[],"u_sd":2,"simulator":1,"ms":"cgmathrkkyrp6xwcusovxk_nts2zn59h63qd8jjg0ndltowfnwjl32psa2x8m09vf106i8jsf_2buj6sg8m0duqbsvh8sz7wgcpg5rd7tvxb63zyo_lyyx7smxpgtrjsler2hmblkysdxrymwwpzdide1qlu-ahhjj8wjsropehz7upgefkdxe35xsk9iiqzogkqf_qbainqo63ditjw95a3d0jl9r9clcmrnozutc4jsy6kvjiuvxybbcrst9hy8sgl7mkmt399rtsyelv_znu_ngtiz8okawbfvgvzeqhxsmgn5eabfs_bdwsuqfb9w7sfvgqvagnbhg2kpz1mnw","isu":"b3eeabb8ee11c2be770b684d95219ecb","format":"320x50_mb","oar":0,"ad_pos":{"height":0,"visible":1,"y":1152,"x":736,"width":0},"u_h":592,"pt":1,"bas_on":0,"ptime":0});</script></head><body></body></html> 10-06 12:15:29.984: i/ads(1102): received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=17339870006830476368&seq_num=1&u_w=384&msid=com.croruptdesigns.gtav_themanual&cap=m%2ca&js=afma-sdk-a-v6.4.1&bas_off=0&net=ed&app_name=1.android.com.croruptdesigns.gtav_themanual&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=2&ms=cgmathrkkyrp6xwcusovxk_nts2zn59h63qd8jjg0ndltowfnwjl32psa2x8m09vf106i8jsf_2buj6sg8m0duqbsvh8sz7wgcpg5rd7tvxb63zyo_lyyx7smxpgtrjsler2hmblkysdxrymwwpzdide1qlu-ahhjj8wjsropehz7upgefkdxe35xsk9iiqzogkqf_qbainqo63ditjw95a3d0jl9r9clcmrnozutc4jsy6kvjiuvxybbcrst9hy8sgl7mkmt399rtsyelv_znu_ngtiz8okawbfvgvzeqhxsmgn5eabfs_bdwsuqfb9w7sfvgqvagnbhg2kpz1mnw&format=320x50_mb&oar=0&u_h=592&bas_on=0&ptime=0&imbf=%40installed_markets%40&u_so=p&output=html&region=mobile_app&u_tz=-240&client_sdk=1&ex=1&slotname=a1524e277372095&kw_type=broad&gsb=3g&caps=inlinevideo_interactivevideo_mraid1_th_autoplay_mediation_sdkadmobapiforads_di&eisu=gkajambmj3pcxld39t1g2jfxkfrdgakxkuluxerhyl8lbw_dz0ax-0lwphmyi4kvmcb2bcermmkoa1w4ap02qzqudw2bkje_biobcxojnc_r0bl3lcfhpy1jokaaueiy&et=58&jsv=56" type: "admob" afmanotifydt: "null" activationoverlayurl: "null" usewebviewloadurl: "false"> 10-06 12:15:30.034: i/ads(1102): ad url modified http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=17339870006830476368&seq_num=1&u_w=384&msid=com.croruptdesigns.gtav_themanual&cap=m%2ca&js=afma-sdk-a-v6.4.1&bas_off=0&net=ed&app_name=1.android.com.croruptdesigns.gtav_themanual&hl=en&gnt=3&carrier=310260&u_audio=4&kw&u_sd=2&ms=cgmathrkkyrp6xwcusovxk_nts2zn59h63qd8jjg0ndltowfnwjl32psa2x8m09vf106i8jsf_2buj6sg8m0duqbsvh8sz7wgcpg5rd7tvxb63zyo_lyyx7smxpgtrjsler2hmblkysdxrymwwpzdide1qlu-ahhjj8wjsropehz7upgefkdxe35xsk9iiqzogkqf_qbainqo63ditjw95a3d0jl9r9clcmrnozutc4jsy6kvjiuvxybbcrst9hy8sgl7mkmt399rtsyelv_znu_ngtiz8okawbfvgvzeqhxsmgn5eabfs_bdwsuqfb9w7sfvgqvagnbhg2kpz1mnw&format=320x50_mb&oar=0&u_h=592&bas_on=0&ptime=0&imbf=8008&u_so=p&output=html&region=mobile_app&u_tz=-240&client_sdk=1&ex=1&slotname=a1524e277372095&kw_type=broad&gsb=3g&caps=inlinevideo_interactivevideo_mraid1_th_autoplay_mediation_sdkadmobapiforads_di&eisu=gkajambmj3pcxld39t1g2jfxkfrdgakxkuluxerhyl8lbw_dz0ax-0lwphmyi4kvmcb2bcermmkoa1w4ap02qzqudw2bkje_biobcxojnc_r0bl3lcfhpy1jokaaueiy&et=58&jsv=56 10-06 12:15:30.034: i/ads(1102): request scenario: online server request. 10-06 12:15:32.784: d/webviewglue(1102): nativedestroy view: 0x2a1bf608 10-06 12:15:32.784: i/ads(1102): onreceivead() 10-06 12:15:33.204: e/cutils-trace(1102): error opening trace file: no such file or directory (2) 10-06 12:15:33.245: d/tilesmanager(1102): starting tg #0, 0x2a282a68 10-06 12:16:32.485: d/cordovaactivity(1102): setting integer properties in cordovaactivity deprecated in 3.0 on july 2013, please use config.xml 10-06 12:16:32.565: d/cordovawebview(1102): cordovawebview running on device made by: unknown 10-06 12:16:32.585: d/jsmessagequeue(1102): set native->js mode 2 10-06 12:16:32.614: e/pluginmanager(1102): ===================================================================================== 10-06 12:16:32.614: e/pluginmanager(1102): error: config.xml missing.  add res/xml/plugins.xml project. 10-06 12:16:32.614: e/pluginmanager(1102): https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=blob;f=framework/res/xml/plugins.xml 10-06 12:16:32.614: e/pluginmanager(1102): =====================================================================================` 

`import android.app.activity; import android.os.bundle; import android.webkit.websettings; import android.webkit.webview;

import org.apache.cordova.*;  import com.google.ads.adsize; import com.google.ads.adview;  public class manual extends droidgap {      @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         super.setintegerproperty("loadurltimeoutvalue", 60000);         super.loadurl("http://croruptdesigns.com/gta/index.html");      } }  


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -