Intent:
java.lang.Object | |
↳ | android.content.Intent |
原意:
An intent is an abstract description of an operation to be performed. It can be used with startActivity
to launch an Activity
, broadcastIntent
to send it to any interested BroadcastReceiver
components, and startService(Intent)
or bindService(Intent, ServiceConnection, int)
to communicate with a background Service
.
译文:
意图是一个操作的抽象描述要执行的。它可用于发动了startActivity活动,broadcastIntent将其发送到任何有兴趣的BroadcastReceiver组件和startService(意图)或bindService(意图,ServiceConnection,int)以沟通,后台服务。
代码示例:
运行效果: 跳转后: