Steps to build an Android environment (for reference only):
Official Building steps: http://developer.android.com/index.html
Before you build your environment, you need to download the following packages:
First, install the Java Runtime Environment JRE (without this eclipse running) and JDK
Download Http://www.oracle.com/technetwork/java/javase/downloads/index.html website,
First install the JRE, then install the JDK, this nothing to say, just click on the next step is good ....
Second, install the Android SDK
Will download the Android_sdk_r14 package extracted out, where all the tube, I usually unzip into the eclipse file, casually put ...
After decompression run SDK Manager.exe file, after running, such as recommended Android1.5 to Android4.0 Select All, Total is 33 packages, click Install Packages button, install SDK takes time, my bandwidth is 4M OK, About 50mins.
Download complete results such as:
OK,SDK installation completed ....
Three: Install android ADT (Eclipse plugin)
Eclipse official Download http://www.eclipse.org/downloads/, select Eclipse IDE for Java EE developers, 212 MB, the original name is Helios, now called Indigo, upgrade too fast , run the Eclipse interface, select Menu bar Help > Install New Software
Enter https://dl-ssl.google.com/android/eclipse/in the pop-up window and return key > Select all > Next > Finish, and wait for the installation ....
After installation, you need to restart Eclipse, after reboot, Eclipse will automatically pop up the path of the specified SDK, select Use existing SDKs, and existing location is the path of the SDK in the second step.
Then Next > Finish.
The ADT installation is complete ....
Unlike previous versions, SDK Management and ADT Management are separate, with two icons
。
Iv. Configuring the Android simulator
Click the button on the right (like a phone), open the AVD Manager, click New to create a new emulator, enter name called avd4.0, specify Target Select Android4.0, and then assign SD card size 256M, and finally Create AVD.
AVD creation completed ....
V. Our Hello world (we run it together!)
Select File > New > Android Project, named HelloWorld.
Write Point code:
1 package Allen.liu.helloworld;
2
3 Import android.app.Activity;
4 Import Android.os.Bundle;
5 Import Android.widget.TextView;
6
7 public class Helloworldactivity extends Activity {
8
9 Private TextView Txtview;
10
One/** called when the activity is first created. */
@Override
public void OnCreate (Bundle savedinstancestate) {
Super.oncreate (savedinstancestate);
Setcontentview (R.layout.main);
16
This.txtview = (TextView) Findviewbyid (R.id.txtview);
if (this.txtview!=null) {
This.txtView.setText ("Hello World");
20}
21}
22} run up
It's over. O (∩_∩) o