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

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

    <tfoot id='Xo6r1'></tfoot>

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

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

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

        我在哪里?- 獲取國家

        Where am I? - Get country(我在哪里?- 獲取國家)

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

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

                <tfoot id='EZthv'></tfoot>

                <legend id='EZthv'><style id='EZthv'><dir id='EZthv'><q id='EZthv'></q></dir></style></legend>
                  <tbody id='EZthv'></tbody>
                1. 本文介紹了我在哪里?- 獲取國家的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  Android 手機實際上確實很清楚它在哪里 - 但是有沒有辦法通過國家代碼之類的東西來檢索國家?

                  An android mobile actually does know quite well where it is - but is there a way of retrieving the country by something like a country code?

                  無需知道準確的 GPS 位置 - 國家 就足夠了

                  No need of knowing the exact GPS position - the country is sufficient

                  我最初考慮使用時區,但實際上我需要更多信息,因為如果位置是紐約或利馬,它會有所不同.

                  I first thought of using the time zone, but actually I need more information than that since it makes a difference if the location is New York or Lima.

                  問題的背景: 我有一個使用溫度值的應用程序,我想將默認單位設置為攝氏度或華氏度,具體取決于位置是美國還是國外

                  The background of the question: I have an application that uses temperature values, and I'd like to set the default unit either to Celsius or Fahrenheit, depending on whether the location is US or outside

                  推薦答案

                  這將得到 國家代碼 為手機設置(手機語言,而不是用戶位置):

                  This will get the country code set for the phone (phones language, NOT user location):

                   String locale = context.getResources().getConfiguration().locale.getCountry(); 
                  

                  也可以用 getISO3Country() 獲取國家/地區的 3 個字母 ISO 代碼.這將獲得 國家/地區名稱:

                  can also replace getCountry() with getISO3Country() to get a 3 letter ISO code for the country. This will get the country name:

                   String locale = context.getResources().getConfiguration().locale.getDisplayCountry();
                  

                  這似乎比其他方法更容易,并且依賴于手機上的本地化設置,所以如果美國用戶在國外,他們可能仍然想要華氏度,這會起作用:)

                  This seems easier than the other methods and rely upon the localisation settings on the phone, so if a US user is abroad they probably still want Fahrenheit and this will work :)

                  編者注:此解決方案與手機的位置無關.它是恒定的.當您前往德國時,語言環境不會改變.簡而言之:locale != location.

                  Editors note: This solution has nothing to do with the location of the phone. It is constant. When you travel to Germany locale will NOT change. In short: locale != location.

                  這篇關于我在哪里?- 獲取國家的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 有多可靠,多久更新一次?)
                  CLLocation returning negative speed(CLLocation 返回負速度)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  • <bdo id='WNN3f'></bdo><ul id='WNN3f'></ul>
                      <tbody id='WNN3f'></tbody>

                        <tfoot id='WNN3f'></tfoot>
                        • <legend id='WNN3f'><style id='WNN3f'><dir id='WNN3f'><q id='WNN3f'></q></dir></style></legend>

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

                            主站蜘蛛池模板: 亚洲精品在线免费看 | 国产成人免费视频网站视频社区 | 乱码av午夜噜噜噜噜动漫 | 超碰日本 | 国产精品999 | 免费观看一级毛片 | 久久av网站 | 日韩精品在线免费观看视频 | 欧美成人h版在线观看 | re久久| 精品福利在线 | 在线视频 亚洲 | 色婷婷av一区二区三区软件 | 国偷自产av一区二区三区 | 成人在线一级片 | 秋霞在线一区二区 | 国产精品美女久久久av超清 | 国产在线一区二区三区 | 欧美性生活网 | 成人一区二区三区在线观看 | 日本久久网站 | 91视频一区| 一呦二呦三呦国产精品 | 欧美日韩一区精品 | 91动漫在线观看 | 中文字幕在线播放不卡 | www.男人天堂.com | 久久aⅴ乱码一区二区三区 亚洲国产成人精品久久久国产成人一区 | 99热精品久久 | 亚洲 欧美 另类 综合 偷拍 | 欧美精品一区二区三区在线播放 | 可以在线看的黄色网址 | 成人av看片 | 中文字幕在线观看一区二区 | 成人精品鲁一区一区二区 | 日韩一区二区三区精品 | 国产精品美女久久久久久久网站 | 国产视频三区 | 污片在线观看 | 国产精品久久久 | 日韩视频成人 |