How to open local .html file in Android and Blackberry emulators, for testing?

Jitendra Vyas picture Jitendra Vyas · Dec 28, 2010 · Viewed 9.8k times · Source

How to open local .html file in Android and Blackberry emulators?

I'm able to open any url from internet, but I'm developing a site for mobile on my local PC and I want to run my locally developed HTML files in emulators.

alt text alt text

Answer

Pieter Kuijpers picture Pieter Kuijpers · Mar 18, 2011

You can access the local PC from the Android emulator via 10.0.2.2 . If you want to test the HTML files on the local filesystem, you need to serve these files from some HTTP server. A very simple one that I use for this purpose is mongoose, that can serve any local directory without any configuration.

I have no experience with the Blackberry emulator, but you should be able to access the local PC using its network IP address. You can access the HTML files from the local HTTP server in the same way as with the Android emulator.