Possible Duplicate:
How to fetch own mobile number in android
How to get the telephone n开发者_如何学Cumber associated with the SIM in a GSM phone?
try following code
TelephonyManager tMgr=(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
mPhoneNumber = tMgr.getLine1Number();
and with following permission in your xml
READ_PHONE_STATE
精彩评论