Is it possible to get a Android WebView to open a port like: 5984?
I need to get some jquery from the ‘assets-folder’ to $.get() my counchdb json-data via the webview.
But first I just make a little test to see if android´s webview could get a response from counchdb:
webview.loadUrl("http://127.0.0.1:5984");
If I use the android´s build-in browser then I get:
{"couchdb":"Welcome","version":"1.2.0a-7b47329-git"}
But NOT via Android´s WebView, I just get a blank screen(see code) 🙁
A little update:
I look like if I switch for Vertical to horizontal, then
I get the data from couchdb(see log).
So maybe couchdb need to be in it own thread..
it look like couchdb must have some time to startup… so if you just put all your couchdb request inside, func like jquerys onclick(), or keyup()… then all is god.