freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

androi畢設(shè)翻譯中英文都有-閱讀頁

2024-11-21 16:37本頁面
  

【正文】 (like music playback). See Processes and Threads, later. Broadcast receivers A broadcast receiver is a ponent that does nothing but receive and react to broadcast announcements. Many broadcasts originate in system code — for example, announcements that the timezone has changed, that the battery is low, that a picture has been taken, or that the user changed a language preference. Applications can also initiate broadcasts — for example, to let other applications know that some data has been downloaded to the device and is available for them to use. An application can have any number of broadcast receivers to respond to any announcements it considers important. All receivers extend the BroadcastReceiver base class. Broadcast receivers do not display a user interface. However, they may start an activity in response to the information they receive, or they may use the NotificationManager to alert the user. Notifications can get the user39。s data available to other applications. The data can be stored in the file system, in an SQLite database, or in any other manner that makes sense. The content provider extends the ContentProvider base class to implement a standard set of methods that enable other applications to retrieve and store data of the type it controls. However, applications do not call these methods directly. Rather they use a ContentResolver object and call its methods instead. A ContentResolver can talk to any content provider。s involved. See the separate Content Providers document for more information on using content providers. Whenever there39。re targeted by a request from a ContentResolver. The other three ponents — activities, services, and broadcast receivers — are activated by asynchronous messages called intents. An intent is an Intent object that holds the content of the message. For activities and services, it names the action being requested and specifies the URI of the data to act on, among other things. For example, it might convey a request for an activity to present an image to the user or let the user edit some text. For broadcast receivers, the 畢業(yè)設(shè)計(論文)文獻綜述 第 12 頁 共 14 頁 Intent object names the action being announced. For example, it might announce to interested parties that the camera button has been pressed. There are separate methods for activating each type of ponent: 1. An activity is launched (or given something new to do) by passing an Intent object to () or (). The responding activity can look at the initial intent that caused it to be launched by calling its getIntent() method. Android calls the activity39。s starting, it calls startActivityForResult() instead of startActivity(). For example, if it starts an activity that lets the user pick a photo, it might expect to be returned the chosen photo. The result is returned in an Intent object that39。s onActivityResult() method. 2. A service is started (or new instructions are given to an ongoing service) by passing an Intent object to (). Android calls the service39。s responding to a request from a ContentResolver. And a broadcast receiver is active only while it39。s no need to explicitly shut down these ponents. Activities, on the other hand, provide the user interface. They39。s bundled into the Android package, the .apk file that also holds the application39。s ponents, such as naming any libraries the application needs to be linked against (besides the default Android library) and identifying any permissions the application expects to be granted. But the principal task of the manifest is to inform Android about the application39。s intent filters inform Android of the kinds of intents the 畢業(yè)設(shè)計(論文)文獻綜述 第 14 頁 共 14 頁 ponent is able to handle. Like other essential information about the ponent, they39。s an extension of the previous example that adds two intent filters to the activity: The first filter in the example — the bination of the action and the category — is a mon one. It marks the activity as one that should be represented in the application launcher, the screen listing applications users can launch on the device. In other words, the activity is the entry point for the application, the initial one users would see when they choose the application in the launcher. The second filter declares an action that the activity can perform on a particular type of data. A ponent can have any number of intent filters, each one declaring a different set of capabilities. If it doesn39。s created and registered in code, the intent filter is instantiated directly as an IntentFilter object. All other filters are set up in the manifest. For more on intent filters, see a separate document, Intents and Intent Filters.
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1