請問呀 小弟目前想開發手機的網頁,網頁是在loalhost端 我用webview來瀏覽http://localhost/卻不行 想請教要如何才能瀏覽local 端的網頁
Android 黑客開發板 請問呀 小弟目前想開發手機的網頁,網頁是在loalhost端 我用webview來瀏覽http://localhost/卻不行 想請教要如何才能瀏覽local 端的網頁 2 則回應 siao123 感謝 plokijuh 回應我己經在android api中找到問題的解決如下網址http://developer.android.com/guide/developing/tools/emulator.htmlAndroid Emulator中的Emulator Networking小節敘述 2009-12-07 plokijuh 你是開模擬器嗎?如果是的話當然不能用 localhost因為 localhost 是模擬器模擬器應該是用 NAT 出去先找到模擬器的 ip在連向 gateway 的 ip應該是 192.168.1.254 or 192.168.1.1 吧I Love Android http://wiki.cheyingwu.tw/Android 2009-11-13
2 則回應
感謝 plokijuh 回應
我己經在android api中找到問題的解決
如下網址http://developer.android.com/guide/developing/tools/emulator.html
Android Emulator中的Emulator Networking小節敘述
你是開模擬器嗎?
如果是的話
當然不能用 localhost
因為 localhost 是模擬器
模擬器應該是用 NAT 出去
先找到模擬器的 ip
在連向 gateway 的 ip
應該是 192.168.1.254 or 192.168.1.1 吧