Skip to main content

Posts

Showing posts from August, 2016

How to add host ip address on Android Virtual Device (AVD) or Genymotion using Android Studio

Select  terminal Enter this script AVD adb shell echo '10.0.2.2 hostname' /system/etc/hosts Genymotion adb shell echo '10.0.3.2 hostname' /system/etc/hosts Enter this script to check if the host successfully added adb shell cat /system/etc/hosts Then terminal will print the hosts file list  Enter http://hostname from emulator browser to check if the host can be accessed