To test the client app on your phone from your phone, you'll typically need to install the app apk to your phone, and install the following steps:
"Preset conditions"
1, through the "Start" of the PC, enter CMD in the Run box, return, open cmd editing interface;
2, mobile phone has been connected PC,PC can identify the phone, you can enter the CMD editing interface adb devices, return, check whether the current phone is connected, if the display device information This identity has been connected, as follows:
C:\USERS\POSUO>ADB devices
* Daemon not running. Starting it now on Port 5037 *
* Daemon started successfully *
List of devices attached
twg0115a27000150 Device
"Install command"
ADB install-r xxxx (APK local storage path);
Successful installation will prompt success;
Where:-r: Indicates that the installation can be overwritten;
Problems may occur: The computer does not recognize the phone, the solution:
1, the mobile phone connected to the computer, the first to ensure that the computer has installed the driver of the phone;
2, in the phone "settings"--"developer Options", open "USB debugging";
(If the "developer Options" is not visible in the phone settings, go to "settings"-"About Phone", click on the version number bar multiple times--this method is for Huawei mobile phone general)
3, CMD editing interface input adb devices, if the following error, is due to the 5037 port is occupied, to find out the port occupies the application, kill the application process can be;
C:\USERS\POSUO>ADB devices
* Daemon not running. Starting it now on Port 5037 *
ADB server didn ' t ACK
* Failed to start daemon *
Error:cannot Connect to Daemon
Method:
First, locate the 5037-Port-occupied application (process), which is entered in the CMD interface:
C:\users\posuo>netstat-ano | Findstr "5037"
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 12476
Note: 12476 is the process number that occupies 5037;
Then, kill the process and type in the CMD interface:
C:\users\posuo>taskkill-f-pid 12476
Success: The process with PID 12476 has been terminated.
This is over.
You can enter ADB devices in the CMD interface to see if the mobile device is recognized by the computer, and if not, display the connected mobile device information;
If the above method is still unable to identify the mobile phone, delete the computer and mobile phone similar to the Pea pod and other connected mobile phone applications, and then the above problem resolution steps;
The
adb command installs the APK, and the installation problem daemon not running. Starting it now on port 5037 resolution