Build an Android system environment
1. What content does the android Environment contain?
Android SDK (software development kit) SDK
It includes the Android operating system, the simulator, the eclipse integrated environment, and the android development tool ADT.
2. Required software?
Android is developed based on Java, so the eclipse integrated environment must be installed.
Android SDK address: http://developer.android.com/sdk/
According to the latest Android SDK download, the verification code will not be mentioned. Of course, after installation, you must configure environment variables for future use.
Set the path to your own path in the SDK tools directory
Android ADT is integrated in ecilpse. Configure-install new in help.
Software adds the update field URL to download and install the ADT
Address: http://dl-ssl.google.com/android/eclipse/
Downloading updates is slow and you need to be patient. This is no better than Microsoft's.
After downloading and updating, you can see that the android OPERATION button is already available on the interface, and then set the environment in the configured Android environment SDK directory preferences.
Brief description of Android
BlogArticleToo many of them, so I won't be able to talk about it here. The younger brother is also working on this application based on the previous SL and flax experience.
First, let's take a look at the installed applications.ProgramComposition
It can be divided into activity, service, broadcast receiver broadcast reciver,
Content Provider content prodvider
What we have done is that the Android Application is composed of activities. You can understand the activity as a form and a presentation layer of the view.
Our components in the unit with activity as the carrier also have an inheritance relationship: for example, textview-> View-> object.
Android is also divided into important development elements:
Androidmanifest configuration file (entry point for configuring basic packgae, activity, and application execution)
Res/layout form layout file-layout editor
Velues resource file-resource editor-configure the resource file to facilitate internationalization later.
First, you must create windows, design the UI layout, add resource files, and add Java functional requirements.CodeWrite and configure androidmanifest.
after the final compilation is complete and there is no error, we can debug it through our simulator.