編輯電子書 - 何謂intent
書名:
型號:
價格:
簡介:
Intent又稱為意圖,是Android中非常重要的機制,串接大大小小來自四面八方的APP使其能相互傳遞與叫用。 事件與意圖也是常拿來比較的機制,其個別特性如下: 事件(Event) 處理者(Handler)觸發事件進行處理。 意圖(Intent) Android會試著去解釋該意圖的目的,並讓每個意圖都有一個動作(Action),讓不同的動作去行動。 Intent在Activity活動方面可以任意在程式元件之間互動與傳遞訊息,形成一種包含著相互獨立的元件集合下的互聯系統。 Intent在Service服務與Broadcast廣播上可以用來註冊監聽特定的Intent意圖,例如:監聽來電Intent與SMS訊息Intent,最後做出相應的回應。 在調用指定上Intent可以分為二種,分別是: 顯性指定 隱性指定 所謂顯性指定是指該意圖發生時,明確指明要由哪一個Activity、Service或Broadcast來接手服務。 所謂隱性指定是指該意圖發生時不指明要由哪一個Act
內容:
<div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>Intent又稱為意圖,是Android中非常重要的機制,串接大大小小來自四面八方的APP使其能相互傳遞與叫用。</td> </tr> </tbody> </table> </div> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>事件與意圖也是常拿來比較的機制,其個別特性如下:</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>事件(Event)</td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>處理者(Handler)觸發事件進行處理。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>意圖(Intent)</td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 44px; width: 540px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>Android會試著去解釋該意圖的目的,並讓每個意圖都有一個動作(Action),讓不同的動作去行動。</td> </tr> </tbody> </table> </div> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>Intent在Activity活動方面可以任意在程式元件之間互動與傳遞訊息,形成一種包含著相互獨立的元件集合下的互聯系統。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; background-color: rgb(255, 255, 255);"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/2_1_1.jpg" style="height:330px; width:320px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>Intent在Service服務與Broadcast廣播上可以用來註冊監聽特定的Intent意圖,例如:監聽來電Intent與SMS訊息Intent,最後做出相應的回應。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; background-color: rgb(255, 255, 255);"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/2_1_2.jpg" style="height:241px; width:320px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>在調用指定上Intent可以分為二種,分別是:</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>顯性指定</td> </tr> </tbody> </table> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td> <div style="position: relative; top: 1px;"><img id="exImg" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/dot_2.gif" style="height:18px; width:18px" /></div> </td> <td>隱性指定</td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>所謂顯性指定是指該意圖發生時,明確指明要由哪一個Activity、Service或Broadcast來接手服務。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; background-color: rgb(255, 255, 255);"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/2_1_3.jpg" style="height:55px; width:265px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>所謂隱性指定是指該意圖發生時不指明要由哪一個Activity、Service或Broadcast來接手,而是讓可以接手的Activity/Service都有機會來服務。</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; background-color: rgb(255, 255, 255);"> <table> <tbody> <tr> <td><img id="Img" src="http://www.pcschool.tv/scorm12/class/05183TC1/class800/05183tc1/05183tc1_m8_1/images/2_1_4.jpg" style="height:40px; width:515px" /></td> </tr> <tr> <td> <p> </p> </td> </tr> </tbody> </table> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> </div> <div class="txt01" style="line-height: 24px; font-size: 15px; color: rgb(46, 124, 167); font-family: Arial, 新細明體; position: relative; left: 0px; width: 570px; background-color: rgb(255, 255, 255);"> <div class="txt01" style="position: relative; left: 24px; width: 560px;"> <table style="table-layout:fixed; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>在行為上Intent可以分為二種,分別是:</td> </tr> </tbody> </table> </div> </div> <div style="font-family: Arial, 新細明體; position: relative; left: 20px; background-color: rgb(255, 255, 255);"> <table style="table-layout:fixed; width:570px; word-break:normal; word-wrap:break-word"> <tbody> <tr> <td>&
上架
封面圖:
當前封面:
支援格式: JPG, PNG, GIF (最大 2MB)
更新電子書
返回列表