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
tostartActivity()
orstartActivityForResult()
(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
tostartService()
. Or you can bind to the service by passing anIntent
tobindService()
. - You can initiate a broadcast by passing an
Intent
to methods likesendBroadcast()
,sendOrderedBroadcast()
, orsendStickyBroadcast()
. - You can perform a query to a content provider by calling
query()
on aContentResolver
.
posted on 2011-08-24 17:13 Alwaysyouare 阅读(159) 评论(0) 编辑 收藏 举报