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, andstartService(Intent)
or bindService(Intent, ServiceConnection, int)
to communicate with a background Service
.An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed. The primary pieces of information in an intent are:
- data -- The data to operate on, such as a person record in the contacts database, expressed as a
Uri
.
- Detail : http://developer.android.com/reference/android/content/Intent.html
- Standard Activity Actions : http://diigo.com/0d5vt
Chat 小程式:
- 新增專案
- 新增class
- 新增XML於layout
- 新增變數於values
- 修改AndroidManifest.xml
- 新增Application Nodes
- 增加Activity
- 修改新增class
- 撰寫程式
沒有留言:
張貼留言