<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                **使用意圖調用內置應用程序** 1、創建一個新的Android項目并命名為Intents,在main.xml文件中添加兩個Button: ~~~ <Button android:id="@+id/btn_webbrowser" android:layout_width="fill_parent" android:layout_height="wrap_content" android:onClick="onClickWebBrowser" android:text="Web Browser" /> <Button android:id="@+id/btn_makecalls" android:layout_width="fill_parent" android:layout_height="wrap_content" android:onClick="onClickMakeCalls" android:text="Make Calls" /> ~~~ 2、在IntentsActivity.java文件中添加如下代碼: ~~~ public void onClickWebBrowser(View v) {//瀏覽器 Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://網址"));//網址處輸入百度網址,CSDN不讓直接寫網址... startActivity(intent); } public void onClickMakeCalls(View v) {//打電話 Intent intent = new Intent(android.content.Intent.ACTION_DIAL, Uri.parse("tel:+651234567")); startActivity(intent); } ~~~ 3、運行程序,效果如下: ![](https://box.kancloud.cn/2016-08-23_57bc06b9756bf.jpg) 點擊Web Browser: ![](https://box.kancloud.cn/2016-08-23_57bc06b9a20af.jpg) 點擊Make Calls: ![](https://box.kancloud.cn/2016-08-23_57bc06b9d3776.jpg) 總結: 在Android中,意圖通常是成對出項:動作(Action)和數據(data)。動作描述了要執行什么,數據則指定了受影響的對象。 動作的一些示例:Action_VIEW、ACTION_DIAL、ACTION_PICK; 數據的一些示例:tel:+651234567、geo:37.827500,-122.481670、content://contacts。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看