I had a chance to work on lot of interesting projects in CandymanLab. Recently we worked on Android application built in Adobe AIR. One of requirements was to read a phone number from device. Google told us that there is no open source solution for this and we came up with pretty neat extension that do the job.
You can download ANE file from here .
All you need to do in order to use it is to add ANE file to the project and add READ_PHONE_STATE permission in manifest.
All you need to do in order to use it is to add ANE file to the project and add READ_PHONE_STATE permission in manifest.
private var phoneNumberExt:PhoneNumberANE;
private var myPhoneNumber:String;
protected function getPhoneNumber():void
{
phoneNumberExt = new PhoneNumberANE();
myPhoneNumber = phoneNumberExt.phoneNumber;
}
Hope you will find it usefull
Hope you will find it usefull
Thanks a lot for your extension. Is there any chance you're going to make a similar extension for iOS? :)
ReplyDeleteLink is not working!!!
ReplyDeletePlease, check the link. It's not working!
ReplyDeleteSorry about broken link...
ReplyDeleteHere it is https://dl.dropbox.com/u/26535954/PhoneNumber.ane
Thank you very much!
ReplyDeleteBut, would you give me the source code of PhoneNumber.ane?
Thanks!
mail: y_boy@126.com
hello, i'm receiving "unknow"... any solution?
ReplyDeleteit returns unknown, any lead
ReplyDeleteGiving me unknown
ReplyDelete