title: UPDATE: as3 air for Android get device phone number
body: <p>I recently download an Android app that allowed a program to send a text via my number. I did not share my number. It just sent it because it had "send SMS messages" enabled. </p>
  
  <p>I don't know if they coded in air for android using as3 but i know it is possible to get the android device phone. </p>
  
  <p>Any ideas on how to do that? I know how to send a sms once I get the users phone. I can do this by sending the users phone to a php script. But I don't know how to get their phone number.</p>
  
  <p>Thanks</p>
  
  <p>UPDATE 9/24/12</p>
  
  <p>I found this bit of code thanks to a post below. However, I do not know how to call the TELEPHONY_SERVICE class.</p>
  
  <p>I think I need this line of code below but I don't know how to use it.
  Context.getSystemService(Context.TELEPHONY_SERVICE)</p>
  
  <p>Here is a link to where I got the info:
  <a href="http://developer.android.com/reference/android/telephony/TelephonyManager.html" rel="nofollow">http://developer.android.com/reference/android/telephony/TelephonyManager.html</a></p>
  
  <p><strong>UPDATE 10/01/12</strong></p>
  
  <p>With the help of someone I found even more code. I think this could work but I can't get adobe cs6 flash professional to see the extension.  Here is a screen shot of my errors: <a href="https://odesk-prod-att.s3.amazonaws.com/MC:201245014:1?AWSAccessKeyId=1XVAX3FNQZAFC9GJCFR2&amp;Expires=2147483647&amp;Signature=SV3aFpOc5UWPHo9egNl%2BVPGVeSo%3D" rel="nofollow">https://odesk-prod-att.s3.amazonaws.com/MC:201245014:1?AWSAccessKeyId=1XVAX3FNQZAFC9GJCFR2&amp;Expires=2147483647&amp;Signature=SV3aFpOc5UWPHo9egNl%2BVPGVeSo%3D</a></p>
  
  <p>Also here is a link to an extension that looks promising to work: <a href="http://candymandesign.blogspot.co.uk/2012/02/adobe-air-native-extension-read-phone.html" rel="nofollow">http://candymandesign.blogspot.co.uk/2012/02/adobe-air-native-extension-read-phone.html</a></p>
  
  <p>Here is a video tutorial that I found using ANE. But with all of these it still does not work. <a href="http://www.youtube.com/watch?v=Axg6E001a7I" rel="nofollow">http://www.youtube.com/watch?v=Axg6E001a7I</a></p>
  
  <p><strong>CAN ANYONE GET THESE TO WORK? THANKS</strong></p>