Android 应用框架
生活随笔
收集整理的這篇文章主要介紹了
Android 应用框架
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Android的每一個應用運行在一個安全的沙箱中:
1.系統給每個應用一個UserID,設置該ID對該應用的所有文件有操作權限。
2.每個應用都會創建一個獨立的VM。
?
There are separate methods for activiting each type of component:
- You can start an activity (or give it something new to do) by passing an Intent to startActivity() or startActivityForResult() (when you want the activity to return a result).
- You can start a service (or give new instructions to an ongoing service) by passing an Intent to startService(). Or you can bind to the service by passing an Intent to bindService().
- You can initiate a broadcast by passing an Intent to methods like sendBroadcast(), sendOrderedBroadcast(), or sendStickyBroadcast().
- You can perform a query to a content provider by calling query() on a ContentResolver.
轉載于:https://www.cnblogs.com/alwaysyouare/archive/2011/08/24/2152260.html
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
以上是生活随笔為你收集整理的Android 应用框架的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PlentyOfFish.com .NE
- 下一篇: 使用Lubuntu开发Android应用