1. An activity is a class, extends activity
2. The OnCreate method must be overwrite. The first activity of the app is displayed on the phone when the app is first run, and the activity's OnCreate method is called by the Android operating system framework.
3. Because each activity is an application component, it needs to be registered in the Androidmanifest.xml. The values of all XML attributes in the configuration file are key-value pairs that have already been registered in R.java.
4. Add the necessary controls to the activity, written in the XML file in the layout directory, and the control layout
5.usually, an activity corresponding to a layout of the XML file, easy to manage
(similar to a developer set of Struts-config,sqlmap,applicationcontext XML files)
6. After configuring each control in layout, use the Findviewbyid method in the activity's OnCreate method to get the control