The Android operating system is a multi-user Linux system in which each app is a different user.
By default, the system assigns each app a unique Linux user ID (the ID is used only by the system and is unknown to the app). The system sets permissions for all the files in an app so that only the user ID assigned to that app can access them.
Each process has its own virtual machine (VM), so an app's code runs in isolation from other apps.
By default, every app runs in its own Linux process. The Android system starts the process when any of the app's components need to be executed, and then shuts down the process when it's no longer needed or when the system must recover memory for other apps.
It's possible to arrange for two apps to share the same Linux user ID, in which case they are able to access each other's files. To conserve system resources, apps with the same user ID can also arrange to run in the same Linux process and share the same VM. The apps must also be signed with the same certificate.
There are four different types of app components:
Activities.
Services.
Broadcast receivers.
Content providers.
Android notes
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
- 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來矩距,“玉大人拗盒,你說我怎么就攤上這事∽墩” “怎么了陡蝇?”我有些...
- 文/不壞的土叔 我叫張陵,是天一觀的道長哮肚。 經(jīng)常有香客問我登夫,道長,這世上最難降的妖魔是什么允趟? 我笑而不...
- 正文 為了忘掉前任恼策,我火速辦了婚禮,結(jié)果婚禮上拼窥,老公的妹妹穿的比我還像新娘戏蔑。我一直安慰自己,他們只是感情好鲁纠,可當(dāng)我...
- 文/花漫 我一把揭開白布总棵。 她就那樣靜靜地躺著,像睡著了一般改含。 火紅的嫁衣襯著肌膚如雪情龄。 梳的紋絲不亂的頭發(fā)上,一...
- 文/蒼蘭香墨 我猛地睜開眼祷肯,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了疗隶?” 一聲冷哼從身側(cè)響起佑笋,我...
- 正文 年R本政府宣布戈毒,位于F島的核電站艰猬,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏埋市。R本人自食惡果不足惜冠桃,卻給世界環(huán)境...
- 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望道宅。 院中可真熱鬧食听,春花似錦胸蛛、人聲如沸。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至迹蛤,卻和暖如春民珍,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背盗飒。 一陣腳步聲響...
推薦閱讀更多精彩內(nèi)容
- PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...