@mSolo
2015-04-29T08:28:43.000000Z
字数 2392
阅读 4257
Android
KERNEL | CHANGE DESCRIPTION |
---|---|
Binder | IPC mechanism with additional features such as security validation of callers/callees; used by numerous system and framework services |
ashmem | Anonymous Shared Memory; file-based shared memory allocator; uses Binder IPC to allow processes to identify memory region file descriptors |
pmem | Process Memory Allocator; used for managing large, contiguous regions of shared memory |
logger | System-wide logging facility |
RAM_CONSOLE | Stores kernel log messages in RAM for viewing after a kernel panic |
"oom" modifications | "Out of memory"-killer kills processes as memory runs low; in Android fork, OOM kills processes sooner than vanilla kernel, as memory is being depleted |
wakelocks | Power management feature to keep a device from entering low-power state, and staying responsive |
Alarm | Timers Kernel interface for AlarmManager, to instruct kernel to schedule “waking up” |
Paranoid Networking | Restricts certain networking operations and features to speciic group IDs |
timed output / gpio | Allows user-space programs to change and restore GPIO registers after a period of time |
yaffs2 | Support for the yaffs2 flash file system |
说明 | |
---|---|
框架 | |
Process & Service | |
文件系统 |
MVC、MVP、MVVM 模式
Rank | Description |
---|---|
Forground | a visible component in front, Service is bound to an Activity in front, or BroadcastReceiver is running |
Visible | visible but is partly obscured( e.g. a dialog popup) |
Service | Service is executing in the background and is not tied to a visible component |
Background | A nonvisible Activity |
Empty | without active components. Empty processes are kept around to improve startup times |
其它一些主题
关于 task: Activity Stack -> Home Screen
Service 组件的去留问题
关于尺寸计算
密度 | 取值 |
---|---|
ldpi | 160 dpi x 0.75 |
mdpi | 160 dpi |
hdpi | 1.5 x 160 dpi = 240 dpi |
xhdpi | 2 x 160 dpi = 320 dpi |
xxhdpi | 3 x 160 dpi = 480 dpi |
xxxhdpi | 4 x 160 dpi = 640 dpi |