Skip to content

Instantly share code, notes, and snippets.

@lifeparticle
Last active December 18, 2015 20:39
Show Gist options
  • Save lifeparticle/5842061 to your computer and use it in GitHub Desktop.
Save lifeparticle/5842061 to your computer and use it in GitHub Desktop.
Grameen Phone weird bug

Interesting bug

Mou icon

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".

Mou icon

If anybody know why its happening, please share with us, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment