This process, I think it's necessary to record
The cause of the matter is this, the program written in the virtual machine can not connect to the server, the first thought is that the virtual machine can not access the network, open a search site, normal, want to ping the server with the ping command, so there is the following process
First install the HyperTerminal, Baidu Input: Better Terminal, the first one is, here I also glue it
http://down.mobilesoftstore.com:8080/soft/1/chaojizhongduanzhuanyeban_7942_20121001.apk
Pull the downloaded APK package directly into the genymotion virtual machine, here note an APK package naming, as if the Chinese name will be error: An error occured while deploying a file. Install_failed_invalid_uri, a mistake like this
In short, change the name to English, no space for the package name, and then pull into the installation on the line, open software, such as
Direct click "Start session" to make a command line
Ping first, saying there's no such command
Use the tool to find Ping, found in the directory below the System/bin, locate the directory is right, and then execute the command, Error said operation is not allowed, that is, I do not have this permission to execute
Then use SU user to execute, pop up a window, say the software to use root user, allow not allowed, Dot always allow
After using the SU user, navigate to the System/bin directory again and execute the./ping-c 3 127.0.0.1, successfully using the ping command
You can use it to ping your server.
Android Network detection