Skip to content

Instantly share code, notes, and snippets.

@mstefanko
Created March 28, 2011 13:27
Show Gist options
  • Save mstefanko/890443 to your computer and use it in GitHub Desktop.
Save mstefanko/890443 to your computer and use it in GitHub Desktop.
Get your mobile number
private String getMyNumber(){
TelephonyManager mTelephonyMgr;
mTelephonyMgr = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
return mTelephonyMgr.getLine1Number();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment