Android Resume Technology Point--skilled Android four components

Source: Internet
Author: User

In fact, the main thing is to ask a basic, if you write a lot of estimates, will not ask you this question, it is certain.


Activity:

In an application, an Activity is usually a separate screen that shows some controls that can also listen and handle the user's events to respond. How can communication between Activity and Intent be handled by user events?

activity is the subclass of the context and implements the Window.callback and the Keyevent.callback , you can handle events that interact with the form user.

Service services A service is a section of the life cycle of the non-interface activity can be used to monitor the program, such as my small white box in the program lock is used.( must be combined with the project, do not always be asked by the interviewer, who would like to talk more, and the interviewer is a day, you will say more about the technical points of your project, so that the interviewer know how much you skill ).

broadcastreceiveBroadcast receivers: Your app can use it to filter external events only to receive and respond to an external event of interest, such as when the phone is being called, or when the data network is available. The broadcast receiver does not have a user interface. However, they can start an activity or serice to respond to the information they receive. Like the surveillance lock screen broadcast in my Little white toolbox.

Content Provider Contents providerThe last one I think you can use, it is said that the interviewer asked the address Book of the database table of the fourth parameter is what AH I do not want to say more.
It is mainly used for data sharing among multiple applications. This data can be stored in the file system or in the SQLite database. The general application is the URL of the Android system to ask the contact person of the communication library


You can move on to the activity. The life cycle of the activity broadcast is what is different from the two registration methods, step service is, Aidl can say

Android Resume Technology Point--skilled Android four components

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.