skip to main
|
skip to sidebar
develop.on.android
Monday, August 31, 2009
Android Code Snippet #1: Get own MSISDN
You can determine the MSISDN of the SIM card currently inserted into your GSM based phone as follows:
...
((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)).getLine1Number();
...
Only works if you are attached to the mobile network.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Subscribe
Posts
Atom
Posts
Comments
Atom
Comments
Blog Archive
►
2010
(1)
►
February
(1)
▼
2009
(7)
►
September
(1)
▼
August
(1)
Android Code Snippet #1: Get own MSISDN
►
June
(1)
►
April
(1)
►
March
(3)
If you like it...
No comments:
Post a Comment