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

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

    <tfoot id='cs0H7'></tfoot><legend id='cs0H7'><style id='cs0H7'><dir id='cs0H7'><q id='cs0H7'></q></dir></style></legend>

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

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

        安卓:未知主機異常

        Android: UnknownHostException(安卓:未知主機異常)

              <tbody id='WfD7f'></tbody>
            • <bdo id='WfD7f'></bdo><ul id='WfD7f'></ul>

              1. <tfoot id='WfD7f'></tfoot>
              2. <small id='WfD7f'></small><noframes id='WfD7f'>

                <i id='WfD7f'><tr id='WfD7f'><dt id='WfD7f'><q id='WfD7f'><span id='WfD7f'><b id='WfD7f'><form id='WfD7f'><ins id='WfD7f'></ins><ul id='WfD7f'></ul><sub id='WfD7f'></sub></form><legend id='WfD7f'></legend><bdo id='WfD7f'><pre id='WfD7f'><center id='WfD7f'></center></pre></bdo></b><th id='WfD7f'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WfD7f'><tfoot id='WfD7f'></tfoot><dl id='WfD7f'><fieldset id='WfD7f'></fieldset></dl></div>
                  <legend id='WfD7f'><style id='WfD7f'><dir id='WfD7f'><q id='WfD7f'></q></dir></style></legend>
                  本文介紹了安卓:未知主機異常的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 Android SDK 2.2,使用模擬器測試我的應用程序.我想發(fā)送一個 HTTP Post.當我這樣做時,我得到一個 UnknownHostException.我已放置所需的權(quán)限
                  >
                  在 manifest.xml 中.我也可以在模擬器上打開瀏覽器并毫無問題地導航到 URL.

                  I am using Android SDK 2.2, testing my application with the emulator. I want to send a HTTP Post. When I do I get a UnknownHostException. I have placed the required permissions
                  <uses-permission android:name="android.permission.INTERNET" />
                  in the manifest.xml. Also I can open the browser on the emulator and navigate to the URL with no problem.

                  這是我的代碼:

                  HttpClient httpclient = new DefaultHttpClient();
                  HttpPost httppost = new HttpPost( uri );
                  HttpResponse response = null;
                  try
                  {
                  // Add your data
                  List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(
                  2 );
                  nameValuePairs.add( new BasicNameValuePair( "id", "edit-name" ) );
                  nameValuePairs
                  .add( new BasicNameValuePair( "stringdata", userName ) );
                  httppost.setEntity( new UrlEncodedFormEntity( nameValuePairs ) );
                  
                  // Execute HTTP Post Request
                  response = httpclient.execute( httppost );
                  // Log.i( "HttpManager:", "======> response: "
                  // + response.getEntity().getContent() );
                  
                  }
                  catch (ClientProtocolException e)
                  {
                  Log.e( "HttpManager", "ClientProtocolException thrown" + e );
                  }
                  catch (IOException e)
                  {
                  Log.e( "HttpManager", "IOException thrown" + e );
                  }
                  

                  推薦答案

                  INTERNET 權(quán)限標簽是清單標簽的子標簽,而不是應用標簽.

                  The INTERNET permission tag is a child of the manifest tag, not the application tag.

                  這篇關(guān)于安卓:未知主機異常的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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 或網(wǎng)絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

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

                  <legend id='yw2Fh'><style id='yw2Fh'><dir id='yw2Fh'><q id='yw2Fh'></q></dir></style></legend>
                    <bdo id='yw2Fh'></bdo><ul id='yw2Fh'></ul>

                          <tbody id='yw2Fh'></tbody>

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

                            <i id='yw2Fh'><tr id='yw2Fh'><dt id='yw2Fh'><q id='yw2Fh'><span id='yw2Fh'><b id='yw2Fh'><form id='yw2Fh'><ins id='yw2Fh'></ins><ul id='yw2Fh'></ul><sub id='yw2Fh'></sub></form><legend id='yw2Fh'></legend><bdo id='yw2Fh'><pre id='yw2Fh'><center id='yw2Fh'></center></pre></bdo></b><th id='yw2Fh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yw2Fh'><tfoot id='yw2Fh'></tfoot><dl id='yw2Fh'><fieldset id='yw2Fh'></fieldset></dl></div>
                            主站蜘蛛池模板: 91九色在线观看 | 我想看一级黄色毛片 | 国产特级毛片aaaaaa | www国产成人免费观看视频,深夜成人网 | 日韩欧美在线一区 | 精品二区| 国产精品久久久久久久久久久久午夜片 | 欧美一级欧美三级在线观看 | 一区二区三区久久 | 日日噜噜夜夜爽爽狠狠 | 欧美精品 在线观看 | 国产美女视频一区 | 中文字幕乱码一区二区三区 | 国内自拍真实伦在线观看 | 极品在线 | 最新日韩在线 | 欧美日韩一区二区在线 | 黄色大片网 | 婷婷久| 91麻豆精品国产91久久久资源速度 | 亚洲欧美综合精品另类天天更新 | 日韩精品一区二区三区 | 国产一二三视频在线观看 | 亚洲欧美日韩在线 | 热99在线| 国产精久久久久久久妇剪断 | 狠狠操在线| 日韩亚洲视频 | 成人免费淫片aa视频免费 | 波多野结衣在线观看一区二区三区 | 中文字幕在线免费 | 中国一级特黄毛片大片 | 岛国av免费看 | 成年人网站国产 | 久久99精品久久久久蜜桃tv | av大片 | 久久国内 | 天天操天天操 | 国产美女久久久 | 99re免费| av看看|