Android Local Testing
April 2013
Start the adb server.
sudo adb start-server
Ensure that your device is in developer mode over USB and connected.
If you’re using the Android SDK/AVD then it will automatically be connected and show as emulator-{id}.
adb devices List of devices attached {YOURDEVICEID} device
Mount the system as read-write, so you can edit the host file.
# If you're using an emulator: adb remount # Continue with the following for both emulator and native device: adb shell # If you're using an emulator: echo '10.0.2.2 dev.yoursite.com' >> /etc/hosts # If you're using native device: mount -o rw,remount /system echo '192.168.12.34 dev.yoursite.com' >> /etc/hosts exit
Fire up http://dev.yoursite.com on your Android device and test your site locally.
niftylettuce@gmail.com | Github | Twitter | Updates | RSS/XML Feed