while testing our app Easy Recharge, Version two, i saw this weird bug.
##Information
- Android version: 4.1.1
- Sim: Grameen Phone
##Code
TelephonyManager phoneManager = (TelephonyManager)getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
String operatorName1 = phoneManager.getNetworkOperatorName();
String operatorName2 = phoneManager.getSimOperatorName();
Add in the manifest
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
Here operatorName1 was giving output "GrameemPhone".
If anybody know why its happening, please share with us, thanks.