Fundamentals of Android Software development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.