1.IDE Preparation
Download Eclipse adt;http://developer.android.com/sdk/index.html from the Android Developers website
After the download is complete, unzip the Adt-bundle-windows-x86_64-20140702.zip,
Refer to the Android developers website to install the SDK via SDK Manager.exe packages;http://developer.android.com/sdk/installing/adding-packages.html
After the installation is complete, open Eclipse and create an Android application project:
Minimum Required SDK: Minimum program compatible version selection 4.0; other selected latest version;
Next
Next, choose program icon, style, background color, etc.
Next; Create an active interface and choose blank activity;
Next, name HelloWorld for the event;
Finish
Project creation completed;
2. Connect your phone
My is Xiaomi4, in Settings->developer options open Developer options and USB debugging;
Install the driver, you can see the status of the phone in Eclipse Ddms, see;
The connection of the mobile phone is successful, if the connection is not successful first check whether driver is installed, other cases please Google;
Now you're back to the Java option.
Click Run:
The device Chooser will pop up
Select Device, OK
Eclipse will install the app on your phone:
First Android App Run on Xiaomi-mi_4w Device