The first step is to build a development environment. For such articles on the network, there is a lot of variation. This article serves as my study notes.
I chose the latest software here, and it does not need to be too serious:
Jdk6: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eclipse 3.6: http://www.eclipse.org/downloads/
Eclipse plug-in ADT 0.9.9 online installation address: https://dl-ssl.google.com/android/eclipse/
Andriod SDK: http://developer.android.com/sdk/index.html
Download and install them one by one. eclipse and android sdks can be directly decompressed, for example, I put them in d: \ eclipse and d: \ android-sdk-windows.
1. Download the android Simulator
Open the decompressed android-sdk-windows and run SDK Manager. This is the sdk Management Center. Install and create the android simulator here. Click Available Packages to view the Available sdk platform. Select the latest Android 2.2 and Android API 8, more than 70 MB. After downloading, you can create a simulator in the first Virtual Devices. Click New... Enter the simulator name, set Target to Android2.2-API Level 8, and set SD Card to 256 MiB. The rest are currently default. If you are interested, you can check what Hardware actually has.
After creating the simulator, click Start... After running, you can see the mobile phone interface.
2. Install the eclipse plug-in ADT
1. Run Eclipse and select
- Help > Install New Software。
2. In the open Available Software window, clickAdd ....
3. Name the remote site in the Name column, for example, Android Plugin. In the Location field, enter:
- https://dl-ssl.google.com/android/eclipse/
Tip: If you have trouble downloading, try changing https to http. ClickOK.
4 backAvailable SoftwareWindow, select both Android DDMS and Android Development Tools, and clickNext.
5. ClickNext, Agree to the installation protocol, clickFinish.
6. Restart Eclipse.
Copy the original text and translate the text here. You can click a few mouse clicks. It is easy to get started with eclipse. Enable after restartWindow> Perferences> AndroidEnter the decompressed SDK path in sdk Location, for example, D: \ android-sdk-windows
3. Create an android Project
In eclipse, clickFile> New> Android Project.
1. Set the project name to HelloAndroid.
2. Select Android 2.2 For Build Target.
3 Application name (Application name): for example, doroleApp
4 Package name (Package name): for example, com. dorole
5 Create Activity (can be understood as an Activity Interface): for example, myActivity
4. Run in the simulator
You do not need to make any changes to the new project. Right-click the project name and selectRun As> Android ApplicationThe previously created simulator will be opened. After unlocking, the application we wrote will run, and Hello World and myActivity will be displayed on the screen. Now the Android development environment has been set up. If you have a real machine, you can package the project into an apk and run it on your mobile phone.
Android Widget Design Guide
Android development: Display listview in popupwindow
Demo Dashboard of Android user interface design template
Android user interface design template Dashboard Product Display