android 瀏覽器

by siao123
2009.11.13 02:59AM
android 瀏覽器

請問呀

小弟目前想開發手機的網頁,網頁是在loalhost端

我用webview來瀏覽http://localhost/卻不行

想請教要如何才能瀏覽local 端的網頁

 

2 則回應

  •  感謝 plokijuh 回應

    我己經在android api中找到問題的解決

    如下網址http://developer.android.com/guide/developing/tools/emulator.html

    Android Emulator中的Emulator Networking小節敘述

    2009-12-07
  • 你是開模擬器嗎?

    如果是的話

    當然不能用 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