android app development of common components

1 Activity

1.1 Activity start

First, android manifest specified in the main activity, click the app's icon into the boot.

Secondly, the use Intent, the activity at the start of another activity.

1.2 Activity life cycle

oncreate, for the first time when creating Activity calls to load the layout and binding events in this method.

 

2 Fragment

fragment depends on the activity, the activity of controlling view of a smaller particle size.

3 Intent

Communication between Activity, Service and BroadcastReceiver.

4 Content Provider

Access the database.

5 Service

Background process.

6 Handler、Looper、MessageQueue

7 UI

8 BroadcastReceiver

 

Guess you like

Origin www.cnblogs.com/hustdc/p/11432266.html