title: Strange issue of getting IMEI Number of Device
body: <p>i am using following code in android to get IMEI number of phone</p>
  
  <pre><code>TelephonyManager telephonyManager = (TelephonyManager)getSystemService(this.TELEPHONY_SERVICE);
          String imei = telephonyManager.getDeviceId().toString();
  </code></pre>
  
  <p>i have tested it on many phones</p>
  
  <p>1) Samsung Ace (froyo)
  2) Galaxy S
  3) Galaxy S2
  4) Samsung Geo (ginger bread)</p>
  
  <p>works perfect and gives IMEI number</p>
  
  <p>but while running same code on following deivce i get nothing :(</p>
  
  <p><strong>Android Pantech</strong></p>
  
  <p>any one guide me what could be the issue or if i use Device_ID to uniquely identify android device would that work for all devices?</p>
  
  <p>and one more thing i have read in forum it is some times null and few famous devices give same Device_ID</p>
  
  <p>any one put some light on it that what is the best way to uniquely identify device and that piece of code should work on all devices?</p>
  
  <p>any help would be appreciated.</p>