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

        安卓:未知主機(jī)異常

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

              <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>
                  本文介紹了安卓:未知主機(jī)異常的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在使用 Android SDK 2.2,使用模擬器測(cè)試我的應(yīng)用程序.我想發(fā)送一個(gè) HTTP Post.當(dāng)我這樣做時(shí),我得到一個(gè) UnknownHostException.我已放置所需的權(quán)限
                  >
                  在 manifest.xml 中.我也可以在模擬器上打開(kāi)瀏覽器并毫無(wú)問(wèn)題地導(dǎo)航到 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)限標(biāo)簽是清單標(biāo)簽的子標(biāo)簽,而不是應(yīng)用標(biāo)簽.

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

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

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

                  相關(guān)文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶(hù)的當(dāng)前位置)
                  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(如何檢測(cè)位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動(dòng)期間獲取當(dāng)前位置)
                  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>
                            主站蜘蛛池模板: 正在播放国产精品 | 美女激情av | 成人精品在线观看 | 亚洲国产aⅴ精品 | 欧美一区二区三区视频在线播放 | 国产视频第一页 | 国产精品国产三级国产aⅴ中文 | 亚洲欧美在线视频 | 九九热在线视频观看这里只有精品 | 日韩精品 | 精品久久久久久红码专区 | 91精品国产综合久久精品图片 | 亚洲欧美中文日韩在线v日本 | 国产在线激情视频 | 成人日b视频 | 青青久在线视频 | 成人综合视频在线观看 | 一本一道久久a久久精品蜜桃 | 一区二区中文 | 伊人久久免费 | 激情五月激情综合网 | 不卡视频一区 | 国产精品久久久久久久久免费高清 | 国产精品久久久久久婷婷天堂 | 麻豆视频在线免费看 | 色综合色综合网色综合 | 福利社午夜影院 | 一区二区三区国产 | 精品久久久一区二区 | 91电影在线| 久久婷婷麻豆国产91天堂 | 国产福利在线 | 中文字幕在线一 | 国产一二三视频在线观看 | 亚洲精品视频在线播放 | 亚洲美乳中文字幕 | 超碰导航| 精品视频一区二区 | 亚洲人成人一区二区在线观看 | 一区欧美 | 亚洲午夜在线 |