To test the reason using a real machine:
1. The simulator starts slowly, the real machine tests faster
2. Some programs in the real-machine test is effective, the simulator has a bug, the results to the real machine as the standard
Connection method:
1. Set the phone to developer mode (settings--about mobile phone--Continuous Click MIUI version-open successfully)
2. Find system security settings in more settings--allow applications with unknown sources to be installed
3. Select the developer option in more settings and check the USB debug and USB installation switches in the developer options
In Eclipse:
Click Run---> Run configurations
Select target and select Always prompt to pick device
then run the program and you'll find the connected Android device
In Android Studio:
1. Find the app in the toolbar and select "Edit Configurations" when you click Open.
2. Select the target as the USB Device
Android Dev release real Machine debug