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.
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.
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.
Thanks
UPDATE 9/24/12
I found this bit of code thanks to a post below. However, I do not know how to call the TELEPHONY_SERVICE class.
I think I need this line of code below but I don't know how to use it. Context.getSystemService(Context.TELEPHONY_SERVICE)
Here is a link to where I got the info: http://developer.android.com/reference/android/telephony/TelephonyManager.html
UPDATE 10/01/12
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: https://odesk-prod-att.s3.amazonaws.com/MC:201245014:1?AWSAccessKeyId=1XVAX3FNQZAFC9GJCFR2&Expires=2147483647&Signature=SV3aFpOc5UWPHo9egNl%2BVPGVeSo%3D
Also here is a link to an extension that looks promising to work: http://candymandesign.blogspot.co.uk/2012/02/adobe-air-native-extension-read-phone.html
Here is a video tutorial that I found using ANE. But with all of these it still does not work. http://www.youtube.com/watch?v=Axg6E001a7I
CAN ANYONE GET THESE TO WORK? THANKS