Android 4.2 and above read APN setting
Asked Answered
M

1

6

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?

Monolayer answered 7/4, 2014 at 7:38 Comment(0)
J
0

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();
Jackinthebox answered 24/4, 2014 at 9:32 Comment(1)
this solution does not work on Android 4.2 and above.Monolayer

© 2022 - 2024 — McMap. All rights reserved.