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

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

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

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

      1. 創建自定義對話框時出現問題

        Problem creating a custom dialog(創建自定義對話框時出現問題)
          <bdo id='4Eszl'></bdo><ul id='4Eszl'></ul>

            <tfoot id='4Eszl'></tfoot>

          1. <small id='4Eszl'></small><noframes id='4Eszl'>

            • <i id='4Eszl'><tr id='4Eszl'><dt id='4Eszl'><q id='4Eszl'><span id='4Eszl'><b id='4Eszl'><form id='4Eszl'><ins id='4Eszl'></ins><ul id='4Eszl'></ul><sub id='4Eszl'></sub></form><legend id='4Eszl'></legend><bdo id='4Eszl'><pre id='4Eszl'><center id='4Eszl'></center></pre></bdo></b><th id='4Eszl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4Eszl'><tfoot id='4Eszl'></tfoot><dl id='4Eszl'><fieldset id='4Eszl'></fieldset></dl></div>
                  <tbody id='4Eszl'></tbody>
                1. <legend id='4Eszl'><style id='4Eszl'><dir id='4Eszl'><q id='4Eszl'></q></dir></style></legend>

                  本文介紹了創建自定義對話框時出現問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在創建自定義對話框時遇到問題.但我沒有發現失敗.希望有人可以幫助我...

                  I have a problem creating a custom dialog. But I don't find the failure. Hopefully anybody can help me ...

                  protected Dialog onCreateDialog(int id) {
                      Dialog dialog = null;
                      switch (id) {
                      case DIALOG_ABOUT_ID:
                          dialog = buildAboutDialog();
                          break;
                      default:
                          dialog = null;
                      }
                      return dialog;
                  }
                  

                  ...

                  public Dialog buildAboutDialog() {
                      Context mContext = getApplicationContext();
                      Dialog dialog = new Dialog(mContext);
                  
                      dialog.setContentView(R.layout.about_dialog);
                      dialog.setTitle("About this application");
                  
                      return dialog;
                  }
                  

                  導致以下錯誤:

                  12-30 19:27:02.593: ERROR/AndroidRuntime(383): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
                  

                  我檢查了返回的對話框是否 == null - 但不是.

                  I checked if the returned dialog == null - but it isn't.

                  我還嘗試了 http:///developer.android.com/guide/topics/ui/dialogs.html#CustomDialog

                  推薦答案

                  發現,對話框需要用

                  Dialog dialog = new Dialog(this);
                  

                  而不是

                  Context mContext = getApplicationContext();
                  Dialog dialog = new Dialog(mContext);
                  

                  我不知道為什么.也許有人可以向我解釋一下?

                  I don't exactly know why. Perhaps anybody can explain it to me?

                  這篇關于創建自定義對話框時出現問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  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(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

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

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

                            <bdo id='JSNPF'></bdo><ul id='JSNPF'></ul>
                              <tbody id='JSNPF'></tbody>

                          • 主站蜘蛛池模板: 国产色片在线 | 国产一区二区三区在线 | 中文字幕日韩欧美 | 成人区精品 | 日本黄色影片在线观看 | 成人免费视频观看视频 | 亚洲一区中文字幕 | 欧美国产日韩精品 | 天天操天天摸天天爽 | 精品中文在线 | 91中文字幕在线 | 欧美精品一区在线发布 | 九九热精品在线 | 91av国产在线视频 | 亚洲二区视频 | 国产精品成人av | 国产亚洲网站 | 91精品国产综合久久久密闭 | 男女羞羞视频在线 | 亚洲人一区 | 欧美另类视频 | 久久成人高清视频 | 91视频在线 | 亚洲欧洲一区 | 久草精品视频 | 欧美aⅴ片| 国产一二三区精品视频 | 最新中文字幕在线 | 一区二区三区高清 | 成人国内精品久久久久一区 | 国产视频黄色 | 99re在线免费视频 | www.黄网| 久久精品国产一区老色匹 | 成人影院在线观看 | 91 中文字幕 | 伊人久久综合 | 91麻豆精品国产91久久久久久 | 亚洲精品久久久久久宅男 | 精品一区二区三区在线观看国产 | 久久精品一二三影院 |