How can I let android emulator talk to the localhost?
Use address 10.0.2.2 instead of localhost.
I'm running an android app on the emulator. This app tries to load a html file using the webview api.
I also have a simple http server running on the same computer under the directory where I want to serve the request using the following python command:
python -m SimpleHTTPServer 800
However, I couldn't access this link through either the app or the browser on the emulator:
http://localhost:800/demo.html
Please let me know if I'm missing something.