관리 메뉴

목록mobile (28)

이사작전.com IT Blog

[Cordova] 폰갭, 다국어 처리 방안 제안 - 2, 프론트페이지

http://doctorson0309.tistory.com/177※위 포스팅과 이어저 작성되는 포스팅입니다.아래와 같은 소스를 이용하면Cordova, index.html에서 다국어 처리를 할 수 있도록lang값을 받을 수 있습니다. Editorial by..</p> </a> <div class="detail_info"> <a href="/category/mobile/Cordova" class="link_cate">mobile/Cordova</a> <span class="txt_bar"></span> <span class="txt_date">2017.10.17 18:52</span> </div> </div> <div class="list_content"> <a href="/177?category=687522" class="thumbnail_post"><img src="//i1.daumcdn.net/thumb/C150x150/?fname=https://t1.daumcdn.net/cfile/tistory/995E1A3359E5CD692A"></a> <a href="/177?category=687522" class="link_post"> <strong class="tit_post ">[Cordova] 폰갭 다국어 처리 방안 제안, 하이브리드 앱</strong> <p class="txt_post">1. onCreate에서 다국어 페이지로 분기 처리하는 방법 public class MainActivity extends CordovaActivity{ @Override public void onCreate(Bundle savedInstanceState){ Locale systemLocale = getApplicationContext().getResources().getConfiguration().locale; String strDisplayCountry = systemLocale.getDisplayCountry(); // 대한민국 String strCountry = systemLocale.getCountry(); // KR String strLanguage = systemLocale.getLanguag..</p> </a> <div class="detail_info"> <a href="/category/mobile/Cordova" class="link_cate">mobile/Cordova</a> <span class="txt_bar"></span> <span class="txt_date">2017.10.17 16:41</span> </div> </div> <div class="list_content"> <a href="/159?category=687519" class="thumbnail_post"><img src="//i1.daumcdn.net/thumb/C150x150/?fname=https://t1.daumcdn.net/cfile/tistory/99684F3359B749781D"></a> <a href="/159?category=687519" class="link_post"> <strong class="tit_post ">[miui] installation failed with message failed to establish sessiom</strong> <p class="txt_post">Unable to install android app via usb debuggingProblemI know this is an old question but I am trying to install my app the very first time on Redmi note 4. Whenever i try to install it displays a dialog saying..Installation failed with message Failed to establish session. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-insta..</p> </a> <div class="detail_info"> <a href="/category/mobile" class="link_cate">mobile</a> <span class="txt_bar"></span> <span class="txt_date">2017.09.12 11:42</span> </div> </div> <div class="area_paging"> <span class="inner_paging"> <a class="btn_prev no-more-prev"><span class="ico_skin ico_prev"></span>Prev</a> <a class="link_page"><span class="selected">1</span></a> <a href='/category/mobile?page=2' class="link_page"><span >2</span></a> <a href='/category/mobile?page=3' class="link_page"><span >3</span></a> <a href='/category/mobile?page=2' class="btn_next ">Next<span class="ico_skin ico_next"></span></a> </span> </div> </div> </div> </div> <hr class="hide"> <div id="dkFoot" role="contentinfo" class="area_foot"> <small class="info_copyright"> Blog is powered by <a href="http://www.kakaocorp.com" class="emph_t" target="_blank">kakao</a> / Designed by <a href="http://www.tistory.com" class="emph_t" target="_blank">Tistory</a> </small> </div> </div> <script src="https://tistory2.daumcdn.net/tistory/1691039/skin/images/script.js"></script> <script src="//search1.daumcdn.net/search/statics/common/js/g/search_dragselection.min.js"></script> <script> lightbox.option({ "fadeDuration": 200, "resizeDuration": 200, "wrapAround": false, "albumLabel": "%1 / %2", "fitImagesInViewport":true , "stopEvent": false }) </script><script src="https://t1.daumcdn.net/tistory_admin/assets/blog/debfc911495ac31f8814482ba1ffd8f0be745a9d/blogs/plugins/RainbowLink/rainbow.js?_version_=debfc911495ac31f8814482ba1ffd8f0be745a9d" type="text/javascript"></script> <script type="text/javascript"> var _tiq = 'undefined' !== typeof _tiq ? _tiq : []; _tiq.push(['__setConfig', {enableScroll:true, enableClick:true, enableButton:true}]); _tiq.push(["__setParam", "svcdomain", "user.tistory.com"]); (function(d) { var se = d.createElement('script'); se.type = 'text/javascript'; se.async = true; se.src = location.protocol + '//m2.daumcdn.net/tiara/js/td.min.js'; var s = d.getElementsByTagName('head')[0]; s.appendChild(se); })(document); _tiq.push(['__setParam', 'param_ex', JSON.stringify({"userId":"1262006","blogId":"1691039","role":"guest","filterTarget":false})]); _tiq.push(['__trackPageview']); var addEvent = function (evt, fn) { window.addEventListener ? window.addEventListener(evt, fn, false) : window.attachEvent('on' + evt, fn); }; var removeEvent = function(evt, fn) { window.removeEventListener ? window.removeEventListener(evt, fn, false) : window.detachEvent('on' + evt, fn);}; var ua = navigator.userAgent.toLowerCase(); var isIOS = /iP[ao]d|iPhone/i.test(ua); var contentExStat = function() { _tiq.push(['__content', 't_content_ex', { 'data_type':'usage' }]); removeEvent(isIOS ? 'pagehide' : 'beforeunload', contentExStat); }; addEvent(isIOS ? 'pagehide' : 'beforeunload', contentExStat); </script> <script type="text/javascript">window.roosevelt_params_queue = window.roosevelt_params_queue || []; window.roosevelt_params_queue.push({channel_id: "dk", channel_label: 'tistory'});</script> <script type="text/javascript" src="//t1.daumcdn.net/midas/rt/dk_bt/roosevelt_dk_bt.js" async></script><script type="text/javascript">if(window.console!=undefined){setTimeout(console.log.bind(console,"%cTISTORY","font:8em Arial;color:#EC6521;font-weight:bold"),0);setTimeout(console.log.bind(console,"%c 나를 표현하는 블로그","font:2em sans-serif;color:#333;"),0);}</script><iframe style="position:absolute;width:1px;height:1px;left:-100px;top:-100px" src="//doctorson0309.tistory.com/api" id="editEntry"></iframe> <div class="#menubar menu_toolbar "> <h2 class="screen_out">티스토리툴바</h2> <div class='btn_tool btn_tool_type1' id='menubar_wrapper'></div><div class="btn_tool"> <button class="btn_menu_toolbar btn_subscription #subscribe" data-blog-id="1691039" data-url="https://doctorson0309.tistory.com" data-device="web_pc"> <strong class="txt_tool_id">이사작전.com IT Blog</strong> <em class="txt_state">구독하기</em> <span class="img_common_tistory ico_check_type1"></span> </button> </div> </div><script type="text/javascript" src="https://t1.daumcdn.net/tistory_admin/assets/blog/debfc911495ac31f8814482ba1ffd8f0be745a9d/blogs/script/menubar.min.js?_version_=debfc911495ac31f8814482ba1ffd8f0be745a9d"></script> <div class="layer_tooltip"> <div class="inner_layer_tooltip"> <p class="desc_g"></p> </div> </div><div id="tistoryEtcLayer" class="layer_post"></div><div id="tistorySnsLayer" class="layer_post"></div></body> </html>