简体   繁体   中英

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 ?

如果您使用AndroPHP之类的Android本地服务器,则root应为localhost,端口号应为localhost:8080(127.0.0.1:80),然后才能在www文件夹下创建项目文件夹并编辑路径

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM