Technical Points of resumes for Android: Four android components, Android
In fact, the main thing is to ask a basic question. If you write more estimates for your project, you will not be asked this question. This is definitely the case.
Activity:
In an application, an Activity is usually a single screen, which can display some controls or listen to and process user events to respond. Why can activities communicate with each other through Intent to process user events.
Activity is a subclass of Context and implements window. callback and keyevent. callback at the same time to process events that interact with form users.
A Service is a long-lived activity without interface that can be used to monitor programs. For example, I used the program lock in the toolbox. (Be sure to integrate with the Project. Don't always be asked by the interviewer. Who would like to talk more? Besides, if the interviewer has been in the face for a day, you should talk more about the technical points of your project, how awesome your technology is to let the interviewer know ).
BroadcastReceive broadcast receiver: Your application can use it to filter external events only for external events of interest (for example, when calls are received, or when data networks are available) receive and respond. The broadcast receiver has no user interface. However, they can start an activity or serice to respond to the information they receive. For example, the monitoring screen lock broadcast in my little white toolbox
I think you can use the last Content Provider of Content Provider. It is said that the interviewer asked me what the fourth parameter of the database table in the address book is.
It is mainly used for data sharing among multiple applications. The data can be stored in a file system or SQLite database. Generally, an application uses the Url provided by Android to ask the contact person of the library.
To continue with the above activity, you can also say that the activity's life cycle broadcast is different from the two registration methods. The step service is, aidl can both talk about it.