I want to read APN settings on Android 4.2 and above. when of best answer i found on the link stackoverflow reference link
it works most of android phone having os 4.2 and above.but does not work most of the samsung devices. Any other way to decide default APN settings?
This seems to work, haven't exhaustively tested yet:
TelephonyManager tel = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
answer = tel.getNetworkOperatorName(); //numeric: tel.getNetworkOperator();
May also check for
tel.getSimOperatorName();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.