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