Halo All,
I'm developing a mobile website and I want to see how it looks in Android Simulator.
I manage to edit my android's /etc/hosts file. Here's what I did:
1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command
3. Execute the following commands
4. Get the android hosts file
5. Add my mobile website into the android's hosts file. It looks like the following
6. Push the hosts file to the simulator
7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.
Did I miss something here?
Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)
I'm developing a mobile website and I want to see how it looks in Android Simulator.
I manage to edit my android's /etc/hosts file. Here's what I did:
1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command
Code:
./emulator -avd android -partition-size 128
Code:
./adb remount
Code:
./adb pull /etc/hosts
Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost
Code:
./adb push hosts /etc/hosts
Did I miss something here?
Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)