2011/6/17 Sherif Shehab Aldin <[email protected]> > Hi all, > > I am doing a project of mine, and I wanted to get the MSISDN of the SIM > cards, and I thought I would follow the Android code to see how It handles > It. I been following the code for hours till I reached this > point: com.android.internal.telephony.gsm.SIMRecords.handleMessage(Message > msg) > > and now am stuck cause I have no clue who calls handleMessage, or as I > think It's an event which is fired after getting the MSISDN. but I have no > clue where to go from here. > > I have asked on #android-developers and someone told me that Android > doesn't do It, the Vendor code implements the baseband functions, If so does > anyone of open source implementation of such a thing, or even have an idea > how that could be implemented, I just need some hints or ideas which I will > implement myself. > > Thanks all, :) >
Don't do that. It is vendor-supplied probably because it is device specific native code. If you want to get the identifiers related to telephony, check out TelephonyManager<http://developer.android.com/reference/android/telephony/TelephonyManager.html>. According to the documentation getLine1Number() returns the MSISDN when available. Don't forget to add the necessary permission to your manifest. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

