Strange WebView "Web Page Not Available" behavior after application runs for a long time

by Kenn Min Chong » Tue, 05 Jan 2010 12:47:34 GMT


Sponsored Links
 Hey there!
   So, I have this simple app that contains a WebView object. My code
basically tells my WebView object to load some pages every minute or
so. The problem is, after the application runs for about 9-10 sites,
every time I ask the WebView object to load a new URL I get a "Web
page not available" error. Why is this happening?

--



Strange WebView "Web Page Not Available" behavior after application runs for a long time

by Kenn Min Chong » Sat, 09 Jan 2010 03:32:07 GMT


 Alright, I think I narrowed down the issue. Once my WebView gets stuck
in an "unresolveable" state, I tried to use the Browser app instead in
the emulator, and it no longer is able to resolve and URL I give.
HOWEVER, if I give it the IP address of the site instead, it works
just fine! So, I think there is something wrong with it when it tries
to resolve a name. Any ideas on how to resolve this?



> page not available" error. Why is this happening?


Sponsored Links


Other Threads

1. Google Adsense for Mobiles

Hi,

I heard that Google had now an Adsense that worked for mobile platforms.

Can someone tell me how this works? Is it a script (javascript) like the
normal web-based adsense uses? or is it like Admob etc that requires the
developer to embed some code into a webview element?

How do I get an account?

Thanks,
Vaz

--~--~---------~--~----~------------~-------~--~----~

2. STILL WORKING ON SH4

Dear Sirs,
I'm trying to compile the pseudo target "libc" using my toolchain for
the target arch SH4.
I modified the build system and substitute the compiler ( from
https://review.source.android.com/#dashboard,1001893 ) with my own
one.
I'm still using libgcc_eh.a from the an other toolchain cause my ones
doesn't provide it.

But that's the error I have to face... then, there a lot of other
"undefined reference" I'm not writing down because they are TOO many!



Install: out/host/linux-x86/bin/acp
cp -fp out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp out/
host/linux-x86/bin/acp
target Non-prelinked: libdl (out/target/product/generic/symbols/system/
lib/libdl.so)
out/host/linux-x86/bin/acp -fpt out/target/product/generic/obj/
SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so out/target/
product/generic/symbols/system/lib/libdl.so
target Unstripped: libdl (out/target/product/generic/obj/lib/libdl.so)
out/host/linux-x86/bin/acp -fpt out/target/product/generic/symbols/
system/lib/libdl.so out/target/product/generic/obj/lib/libdl.so
target SharedLib: libc (out/target/product/generic/obj/
SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
/my/toolchain/SH/bin/g++  -nostdlib -Wl,-soname,libc.so -Wl,-T,build/
core/shelf.xsc -Wl,--gc-sections -Wl,-z,norelro -Wl,-shared,-Bsymbolic
-Lout/target/product/generic/obj/lib out/target/product/generic/obj/
lib/sobegin.o        out/target/product/generic/obj/SHARED_LIBRARIES/
libc_intermediates/bionic/malloc_leak.o out/target/product/generic/obj/
SHARED_LIBRARIES/libc_intermediates/bionic/dlmalloc.o out/target/
product/generic/obj/SHARED_LIBRARIES/libc_intermediates/bionic/
libc_init_dynamic.o    -Wl,--whole-archive  out/target/product/generic/
obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a -Wl,--no-
whole-archive   -ldl  -o out/target/product/generic/obj/
SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so  -Wl,--no-
undefined   /home/USER/works_on_prog/prebuilt/linux-x86/toolchain/
sh-4.3.3/bin/../lib/gcc/sh-linux-gnu/4.3.3/libgcc_eh.a /my/toolchain/
SH/bin/../lib/gcc/sh-superh-elf/4.2.4/libgcc.a out/target/product/
generic/obj/lib/soend.o
Install: out/target/product/generic/system/lib/libdl.so
out/host/linux-x86/bin/acp -fpt out/target/product/generic/obj/lib/
libdl.so out/target/product/generic/system/lib/libdl.so
out/target/product/generic/obj/STATIC_LIBRARIES/
libc_common_intermediates/libc_common.a(wait.o): In function
`waitpid':
/home/USER/ANDROID/bionic/libc/unistd/wait.c:44: multiple definition
of `_waitpid'
out/target/product/generic/obj/STATIC_LIBRARIES/
libc_common_intermediates/libc_common.a(_waitpid.o):(.text+0x0): first
defined here
out/target/product/generic/obj/STATIC_LIBRARIES/
libc_common_intermediates/libc_common.a(exit.o): In function `exit':
/home/USER/ANDROID/bionic/libc/stdlib/exit.c:52: multiple definition
of `_exit'
out/target/product/generic/obj/STATIC_LIBRARIES/
libc_common_intermediates/libc_common.a(_exit.o):(.text+0x0): first
defined here
out/target/product/generic/obj/SHARED_LIBRARIES/libc_intermediates/
bionic/malloc_leak.o: In function `get_malloc_leak_info':
/home/USER/ANDROID/bionic/libc/bionic/malloc_leak.c:200: undefined
reference to `_memcpy'
/home/USER/ANDROID/bionic/libc/bionic/malloc_leak.c:200: undefined
reference to `_memset'
out/target/product/generic/obj/SHARED_LIBRARIES/libc_intermediates/
bionic/dlmalloc.o: In function `release_unused_segments':
/home/USER/ANDROID/bionic/libc/bionic/dlmalloc.c:3719: undefined
reference to `_munmap'




ANY SUGGESTION?? What am I missing?? :(
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Android Developers - Don't miss your chance to regisetr for upcoming Sprint dev conf Oct 26 in Santa Clara

4. CR HAPUS DATA DI PDF ATAU DOWNLOAD

5. Adding a new plugin

6. How do I unsubscribe?

7. Okay - I am an idiot but I can't get this to work....