android-Application Fundamentals and Principles OverviewBasic features of an Android program
1 APK is an Android app installation format, Dex is the Android binary execution file format
2 Android is a multi-user operating system based on Liunx, and each application is using a different user
3 By default, a program a userid, system settings, do not need to manually set, such a program, the user has permission to do all the operation
4 Each process has its own instance of a suction machine, so the internal procedure is relatively independent
5 By default, applications have their own Linux processes, and the system decides when to close them and automatically shuts down certain processes based on priority when resources are insufficient.
6 can share a userid for two programs to communicate with each other
7 programs can request access to system resources, such as contacts, text messages, etc., but need to be authorized when the program is installed
Limitations of the development of two mobile terminals
Lower processor
Limited memory
Limited storage space
Low resolution for small screens
vga:640x480
hvga:480x320
qvga:320x240
wvga:800x480
High cost of data transfer
Low speed and high latency for data transmission
Unstable data connections
Limited amount of power
Three problems to be considered in developing mobile terminals
Performance: Fast and sensitive
Responsiveness: Rejecting ANR,I/O operations (File, SQL, Network) and complex operations (such as game Movement operations) are best used in asynchronous mode
Seamless Interaction: Interaction with third-party programs and pre-background switching
Security: Considerations for Operational permissions
For details, refer to the official website's documentation
Four Android seven components
1 Activity: Activities
Activity is an interface for Android applications that can interact with users through this interface
An application typically contains multiple activity
Activity adds various view through the layout manager
The view can be rendered by using the Setcontentview (int) method
Need to register within the profile manifest.xml file
2 Service: Services
Service runs in the background, dealing with things that some users don't see and that have a duration
Service does not generate UI, not visible
All user-implemented service must inherit the service class of the system and register within the configuration file Manifest.xml file
3 Content provide: Data sharing between multiple programs
Data is a private program in Android
Content provide provides a mechanism for data interaction among multiple programs
Content provide exposes a number of standard APIs to manipulate data
No need to re-configure in-file registration
4 broadcast receiver: Broadcast reception
Broadcast Receicver responsible for responding to external events
Broadcast Receicver does not generate UI, not visible
All user-implemented broadcast receiver must inherit the system's broadcast receiver class and register within the configuration file Manifest.xml file
The application can broadcast its own intent through context.sendbroadcast (), and other programs are acquired by their own broadcast receiver for time processing
Need to register within the profile manifest.xml file
5 Intent: Three of the top four components require Intent (except for content provide) objects (parametric objects) for communication and parameter passing of three components in a dynamic pass
6 Launcher&widget:launcher is the first program that is loaded at system startup, which is the main interface and the list of applications, but it is also an activity
Widgets are small plug-ins, long-press the system interface to install the small plug-in, such as weather, battery control
7 Notification: Reminder, is the drop-down bar inside the notice, such as missed calls, QQ messages and so on
android-Application Fundamentals and Principles Overview