2

i want to get the SIM number programmatically.Is it possible in flex?In android developer guide i saw telephony manager class,likewise do we have anything in flex??

Thanks in advance..

Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
Naveen
  • 141
  • 2
  • 16
  • 2
    What is a SIM Number? You mean a unique identifier for a cell phone's SIM card? Or something different? – JeffryHouser May 02 '11 at 16:13
  • @www.Flextras.com +1. If this IS a mobile question, then we need to take the flex4 tag off as well. – Brian Genisio May 02 '11 at 16:56
  • @www.Flextras.com Yes the unique number.is it possible??? – Naveen May 03 '11 at 04:09
  • Who is extra intelligent person who down voted? The question is valid as next version of flex is coming with mobile framework. – Akash Kava May 03 '11 at 06:10
  • Flex 4.5 focuses on android and major phones – Akash Kava May 03 '11 at 06:11
  • @Akash Kava.Hey thanks for replying,so is it possible to obtain the SIM number in the current version.Im using flex 4.5.0. – Naveen May 03 '11 at 07:49
  • @naveen I don't know of a way; but am not intimately familiar w/ all of the mobile APIs. Is this value exposed via Android APIs? If not; then Flex won't be able to expose it either. I'm going to retag this as AIR for Android; as that is what would give you the API. @Akash Kava I perceive that accessing this value could be considered a major privacy/security violation; and I suspect that is why it was downvoted. Flex 4.5/Flash Builder 4.5 is out today, BTW – JeffryHouser May 03 '11 at 12:34
  • @www.Flextras.com yes the android APIs allows that.there is a class called telephony manager,through that it can be accessed.. – Naveen May 04 '11 at 04:26
  • @Naveen I'm guessing it is not possible. I looked at the SystemCapabilities class docs and it was not exposed there. I'm not sure where else it would be exposed. – JeffryHouser May 04 '11 at 13:06
  • @www.Flextras.com ya even i dint find any solutions.Thanks for replying – Naveen May 04 '11 at 13:37

1 Answers1

1

Check this out... a hack for sure, but a way for you to call into the Java APIs (Android) from Flex Mobile:

http://www.jamesward.com/2011/05/11/extending-air-for-android/

Brian Genisio
  • 47,787
  • 16
  • 124
  • 167