久久久久久久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>

                          • 主站蜘蛛池模板: 日韩欧美福利视频 | 国产黄色小视频在线观看 | 中文精品视频 | 成人av看片 | 狠狠干天天干 | 日本三级电影在线看 | 久久精品这里 | 免费在线观看h片 | 青春草国产 | 精久久久 | 黄色大片在线播放 | 中文字幕影院 | 爱爱免费视频网站 | 精品一区二区电影 | 欧美精品一区二区三区四区 在线 | 99热欧美 | 久久精品—区二区三区 | 亚洲不卡在线观看 | 91亚洲精品在线 | 日韩一级免费 | 久久久久久久av | 日日日操 | 成人综合伊人 | 日本一区二区视频 | 国产精品高 | 国产精品一区二区久久 | 一级黄色毛片a | av福利网| 操操操操操 | 99久久婷婷国产亚洲终合精品 | 国产免费色 | 一区欧美| 欧美日韩在线看 | 在线观看视频91 | 99成人| 中文字幕一二三区 | 日本羞羞影院 | 国产欧美在线观看 | www.亚洲精品 | 久久久精品一区 | 国产精品99久久久久久动医院 |