久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <small id='HUaQK'></small><noframes id='HUaQK'>

      1. <tfoot id='HUaQK'></tfoot>

      2. <legend id='HUaQK'><style id='HUaQK'><dir id='HUaQK'><q id='HUaQK'></q></dir></style></legend>

        <i id='HUaQK'><tr id='HUaQK'><dt id='HUaQK'><q id='HUaQK'><span id='HUaQK'><b id='HUaQK'><form id='HUaQK'><ins id='HUaQK'></ins><ul id='HUaQK'></ul><sub id='HUaQK'></sub></form><legend id='HUaQK'></legend><bdo id='HUaQK'><pre id='HUaQK'><center id='HUaQK'></center></pre></bdo></b><th id='HUaQK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HUaQK'><tfoot id='HUaQK'></tfoot><dl id='HUaQK'><fieldset id='HUaQK'></fieldset></dl></div>
          <bdo id='HUaQK'></bdo><ul id='HUaQK'></ul>

        禁止谷歌地圖意圖選擇對話框

        Suppressing Google Maps Intent Selection Dialog(禁止谷歌地圖意圖選擇對話框)
        <tfoot id='DQNQQ'></tfoot>

        <i id='DQNQQ'><tr id='DQNQQ'><dt id='DQNQQ'><q id='DQNQQ'><span id='DQNQQ'><b id='DQNQQ'><form id='DQNQQ'><ins id='DQNQQ'></ins><ul id='DQNQQ'></ul><sub id='DQNQQ'></sub></form><legend id='DQNQQ'></legend><bdo id='DQNQQ'><pre id='DQNQQ'><center id='DQNQQ'></center></pre></bdo></b><th id='DQNQQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DQNQQ'><tfoot id='DQNQQ'></tfoot><dl id='DQNQQ'><fieldset id='DQNQQ'></fieldset></dl></div>

        <legend id='DQNQQ'><style id='DQNQQ'><dir id='DQNQQ'><q id='DQNQQ'></q></dir></style></legend>

            <tbody id='DQNQQ'></tbody>

              <small id='DQNQQ'></small><noframes id='DQNQQ'>

                <bdo id='DQNQQ'></bdo><ul id='DQNQQ'></ul>

                  本文介紹了禁止谷歌地圖意圖選擇對話框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  當我使用這段代碼時

                     string url = "somegooglemapsurl.com";
                     Intent mapLauncherIntent = new Intent(android.content.Intent.ACTION_VIEW,  Uri.parse(url));
                     startActivity(mapLauncherIntent);
                  

                  會彈出一個選擇對話框,詢問我是否要在地圖應用程序或瀏覽器中打開此地圖.我希望從我的應用程序活動到 Google 地圖的過渡是無縫的.如何抑制此對話框并告訴 android 在地圖活動中打開地圖?

                  A selection dialog pops up asking if I want to open this map in the maps application or the browser. I'd like the transition from my application activity to Google Maps to be seamless. How can I suppress this dialog and tell android to open the map in the maps activity?

                  當我進入谷歌地圖時,我想在某個位置使用公共蒸騰打開一個方向提示.我可以通過 google maps url 做到這一點,但是 url 會彈出選擇對話框.

                  When I get into Google Maps I want to open a directions prompt using public transpiration in a certain location. I can do this through a google maps url, but a url brings up the selection dialog.

                  推薦答案

                  我還沒有找到完美的解決方案,但這至少可以打開預先選擇正確目的地和公共交通的地圖.然后用戶所要做的就是點擊方向按鈕.

                  I haven't found a perfect solution, but this will at least open maps with the correct destination and public transportation pre-selected. Then all the user has to do is hit the directions button.

                  它還會檢查是否安裝了谷歌地圖,如果安裝了,則更喜歡使用它.

                  It also checks if google maps is installed and prefers to use that if so.

                  Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?daddr=0,0%20(Imaginary%20Place)&dirflg=r"));
                  if (isAppInstalled("com.google.android.apps.maps")) {
                      intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
                  }
                  startActivity(intent);
                  

                   

                  // helper function to check if Maps is installed
                  private boolean isAppInstalled(String uri) {
                      PackageManager pm = getApplicationContext().getPackageManager();
                      boolean app_installed = false;
                      try {
                          pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);
                          app_installed = true;
                      } catch (PackageManager.NameNotFoundException e) {
                          app_installed = false;
                      }
                      return app_installed;
                  }
                  

                  這篇關于禁止谷歌地圖意圖選擇對話框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Help calculating X and Y from Latitude and Longitude in iPhone(幫助從 iPhone 中的緯度和經度計算 X 和 Y)
                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)

                        <small id='GgCnQ'></small><noframes id='GgCnQ'>

                        • <bdo id='GgCnQ'></bdo><ul id='GgCnQ'></ul>

                          <legend id='GgCnQ'><style id='GgCnQ'><dir id='GgCnQ'><q id='GgCnQ'></q></dir></style></legend>

                          • <i id='GgCnQ'><tr id='GgCnQ'><dt id='GgCnQ'><q id='GgCnQ'><span id='GgCnQ'><b id='GgCnQ'><form id='GgCnQ'><ins id='GgCnQ'></ins><ul id='GgCnQ'></ul><sub id='GgCnQ'></sub></form><legend id='GgCnQ'></legend><bdo id='GgCnQ'><pre id='GgCnQ'><center id='GgCnQ'></center></pre></bdo></b><th id='GgCnQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GgCnQ'><tfoot id='GgCnQ'></tfoot><dl id='GgCnQ'><fieldset id='GgCnQ'></fieldset></dl></div>
                              <tbody id='GgCnQ'></tbody>
                            <tfoot id='GgCnQ'></tfoot>
                            主站蜘蛛池模板: k8久久久一区二区三区 | 久久久久久久av麻豆果冻 | 成人在线一区二区 | 三级视频在线观看 | av中文在线| 欧美日韩在线播放 | 91精品国产综合久久久久久蜜臀 | 成人h免费观看视频 | 一区二区三区四区免费视频 | 日韩午夜激情 | 免费观看一级黄色录像 | 国产视频一区在线观看 | 欧美二区在线 | 国产精品久久久久久久毛片 | 久久伊人精品一区二区三区 | 亚洲视频三区 | 中文字幕视频免费 | 欧美激情国产日韩精品一区18 | 国产精品免费一区二区 | 精精国产xxxx视频在线野外 | 91精品综合久久久久久五月天 | 亚洲福利在线观看 | 日韩中文字幕视频在线观看 | 日韩视频精品在线 | 国产一区二 | 国产精品免费一区二区三区四区 | 一级黄色片网址 | 九九九久久国产免费 | 欧美日本在线观看 | 黄网站涩免费蜜桃网站 | 欧美一区二区三区在线 | 欧美精品一区三区 | 日韩福利| 国产亚洲精品综合一区 | 中文字幕二区 | 国产美女精品视频 | 激情五月婷婷 | 日日草夜夜草 | 中文字幕亚洲精品 | 亚洲精品久久久久久久久久久 | 欧美日高清 |