user310291
user310291

Reputation: 38190

Android Webview can show google.com but not localhost whereas iPhone UIWebView can show localhost

I have created a hello world app in both android and iPhone. Both can show http://google.com. But when I try http://localhost:5555/example.html , iPhone app works but Android webview complains with webpage not available.

Is it because I'm using Dashcode to create my html5 page and use localhost from Dashcode also? If yes what should I modify to make it work for Android WebView ?

Upvotes: 0

Views: 933

Answers (1)

tao_can
tao_can

Reputation: 58

if you you use localserver for Android like AndroPHP, root should be localhost and port number like localhost:8080 (127.0.0.1:80) than you can create your project folder under www folder and edit the path

Upvotes: 0

Related Questions