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

  • <i id='M1sHT'><tr id='M1sHT'><dt id='M1sHT'><q id='M1sHT'><span id='M1sHT'><b id='M1sHT'><form id='M1sHT'><ins id='M1sHT'></ins><ul id='M1sHT'></ul><sub id='M1sHT'></sub></form><legend id='M1sHT'></legend><bdo id='M1sHT'><pre id='M1sHT'><center id='M1sHT'></center></pre></bdo></b><th id='M1sHT'></th></span></q></dt></tr></i><div id='M1sHT'><tfoot id='M1sHT'></tfoot><dl id='M1sHT'><fieldset id='M1sHT'></fieldset></dl></div>
    <legend id='M1sHT'><style id='M1sHT'><dir id='M1sHT'><q id='M1sHT'></q></dir></style></legend><tfoot id='M1sHT'></tfoot>
          <bdo id='M1sHT'></bdo><ul id='M1sHT'></ul>
      1. 如何在 PhoneGap 中获取 IMEI 号码?

        How to get IMEI number in PhoneGap?(如何在 PhoneGap 中获取 IMEI 号码?)

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

            <tfoot id='l4tTq'></tfoot>

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

                <tbody id='l4tTq'></tbody>

                  本文介绍了如何在 PhoneGap 中获取 IMEI 号码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  I'm developing a PhoneGap Android mobile application using jQuery, JavaScript and HTML. I want to get the mobile IMEI. I have tried this code from this Tutorial.

                  I am getting the number like this: 97734a345d234d. I have checked my device to get IMEI number using *#06#. I don't know whether it is correct or not.

                  解决方案

                  Fetch the IMEI number in the class which extends DroidGap class and save the value of imei number in static member and then access this static field from where ever you want... example code is here

                  public class MyApp extends DroidGap
                  {
                      private static String imei; 
                      @Override
                      public void onCreate(Bundle savedInstanceState)
                      {
                          super.onCreate(savedInstanceState);
                          super.loadUrl("file:///android_asset/www/index.html");
                          TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
                          imei=tm.getDeviceId();
                      }
                      static public String getIMEI(){
                          return imei;
                      }
                  }
                  // where ever u need imei number use this code
                  
                  String imei=MyApp.getIMEI();
                  

                  这篇关于如何在 PhoneGap 中获取 IMEI 号码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How To Create a Rotating Wheel Control?(如何创建转轮控件?)
                  How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
                  Screen orientation lock(屏幕方向锁定)
                  Strange behavior with android orientation sensor(android方向传感器的奇怪行为)
                  Android: Rotate image in imageview by an angle(Android:将imageview中的图像旋转一个角度)
                  Activity restart on rotation Android(旋转Android上的活动重启)

                    1. <i id='2oOrL'><tr id='2oOrL'><dt id='2oOrL'><q id='2oOrL'><span id='2oOrL'><b id='2oOrL'><form id='2oOrL'><ins id='2oOrL'></ins><ul id='2oOrL'></ul><sub id='2oOrL'></sub></form><legend id='2oOrL'></legend><bdo id='2oOrL'><pre id='2oOrL'><center id='2oOrL'></center></pre></bdo></b><th id='2oOrL'></th></span></q></dt></tr></i><div id='2oOrL'><tfoot id='2oOrL'></tfoot><dl id='2oOrL'><fieldset id='2oOrL'></fieldset></dl></div>
                        <tbody id='2oOrL'></tbody>
                      <tfoot id='2oOrL'></tfoot>

                      • <bdo id='2oOrL'></bdo><ul id='2oOrL'></ul>

                          <small id='2oOrL'></small><noframes id='2oOrL'>

                          1. <legend id='2oOrL'><style id='2oOrL'><dir id='2oOrL'><q id='2oOrL'></q></dir></style></legend>