Translate

2010年10月14日 星期四

99-1朝陽資工 - 手持式裝置程式設計 - Intent

Android - Intent

An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an ActivitybroadcastIntent 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:
  • action -- The general action to be performed, such as ACTION_VIEWACTION_EDITACTION_MAIN, etc.
  • data -- The data to operate on, such as a person record in the contacts database, expressed as a Uri.


Chat 小程式:
  • 新增專案
  • 新增class
  • 新增XML於layout
  • 新增變數於values
  • 修改AndroidManifest.xml
    • 新增Application Nodes
    • 增加Activity
  • 修改新增class
  • 撰寫程式

沒有留言: