1, Android Features: openness: a foundation of open source, convenience: Equality: 2, Android four basic components are Activity,service service, content provider contents provider, Broadcastreceiver broadcast receivers. Activity is one of the most basic components of Android, which is responsible for screen display, storing UI controls, and interacting with the user directly on the activity. An Android project will consist of more than one activity. The service component runs in the background and has no UI screen, and its role is to provide some services to the program. For example: Download tasks, music playback, data requests and so on. There is also a lot of service inside the Android system. such as: Telephone service, SMS service, GPS service, WiFi service and so on. ContentProvider component content provider, the Android program through which to achieve data sharing between applications, in the Android program to save data in many ways, without a unified standard can not be shared across the application of data sharing, This is the reason why ContentProvider exists. Broadcastreceiver components: The broadcast broadcasting mechanism is the basic mechanism for transmitting messages between applications in Android, with various broadcast messages registered on Android phones, such as phone, SMS, WIFI, etc. A broadcast is sent when a state changes, and we can use the mechanism of this component to capture various broadcasts for our programs. 3. Folder under Android Project: SRC folder: Java source code ; Gen folder: R.java file; Assets folder: Resource file directory, r does not record; Libs folder: The jar file that the project depends on; Res folder: Resource file directory, log to R file; Androidmanifest.xml file: application configuration file; drawable Folder: Picture resource, drawable-hdpi: Storing high resolution (480*800) DRAWABLE-LDPI: Storing low resolution (240*320) DRAWABLE-MDPI: Storage medium resolution (320* 480) DRAWABLE-XHDPI: Storing higher resolution (1232*800) Mipmap folder: Storing picture resources, similar to drawable folder; Layout folder: Placing a layout file (XML file) with each activity corresponding to an XML file ; values folder: The parameter value directory, which contains the description of the XML parameter file, where you can add some strings, colors, styles, and so on.
Fundamentals of Android software development