Oh boy, there's java web server 4 kilos in size http://is.gd/2Rfl2. I
wonder though what would be faster - doing WebView#loadUrl from such
server or WebView#loadDataWithBaseUrl from value stored in the
preferences. In any event - first one will be cached by browser, with
history provided which is not a small gain, plus - I can store files
for that webserver on the card.
I will try this tonight,

Thanks Chris!

On Sep 3, 6:24 pm, Chris Stratton <[email protected]> wrote:
> Yes and you have the right idea about needing something that will
> listen on a socket, but you will probably need to put it on a higher
> port number and include that in the URL, since on most linuxes non
> privileged processes cannot claim low port numbers such as 80.   Port
> 8080 was often used in the old days...
>
> You could do this by porting some compact embedded linux http server
> by abusing the ndk toolchain, but the android folks would say it's
> better done in java
>
> On Sep 3, 7:49 pm, "droidin.net" <[email protected]> wrote:
>
> > Is it possible to do something like WebView#loadUrl("http://10.0.0.2/
> > index.html") with service acting as local http server? Where would one
> > start? Will I need at least partial http server implementation that
> > would listen on the socket?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to