Questions tagged [telephonymanager]

Telephony class for Android devices

A class that provides access to information about the telephony services on an Android device

781 questions
6
votes
2 answers

How do I get information about a phone's IMEI in Android 10?

Before Android 10, I was using the TelephonyManager API to retrieve that info, but it's no longer working in Android 10.
Ajay Chauhan
  • 1,471
  • 4
  • 17
  • 37
6
votes
2 answers

getNeighboringCellInfo() returning null list

I'm struggling a little trying to get neighbour cells info (for the current cell info, everything works fine): mTelephMgr=(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); neighbours=mTelephMgr.getNeighboringCellInfo(); I've tried…
Kirah
  • 163
  • 1
  • 6
6
votes
1 answer

Collecting 5G cell data (New Radio)

After doing some digging I’ve found google source code containing 5G information related to as NR (new radio). Interestingly enough, these changes are not available on dev or pie-dev but on the master branch! telephony manager incl.…
Android
  • 814
  • 1
  • 9
  • 21
6
votes
1 answer

Auto Answering Incoming Calls in Nougat

Is there any way to programmatically answer incoming calls in Android 7.0 without root privileges? I tried following way to pick up an incoming call. TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); …
Sanjay Bhalani
  • 2,424
  • 18
  • 44
6
votes
0 answers

while incoming call to open system app phone dialer

I am setting the phone app as my default app and also getting the call inside the onCallAdded() method. but while incoming the call, should open android phone dialer, not my default dialer, like truecaller or easycallbalcklist Service class public…
6
votes
10 answers

How to remove country code , When Pick Phone Number from contacts

I have doubt in that section. How to Remove country code, when I pick phone number from contact list? Ex: +91 999999999 instead of 9999999999 or +020 9696854549 instead of 9696854549 Can any one know the answer about my question. please give…
New
  • 152
  • 1
  • 2
  • 12
6
votes
1 answer

Unable to get non-empty string from PhoneStateListener::onCallStateChanged

Source: listener = new PhoneStateListener() { @Override public void onCallStateChanged(int state, String incomingNumber) { super.onCallStateChanged(state, incomingNumber); Toast toast =…
6
votes
2 answers

Android Nougat PhoneStateListener is not triggered

In Android (target 25) I have a background service and in onCreate function I have initialized a phone state listener. It works fine on Android versions that are before Nougat but in Nougat it doesn't work, even though the permissions are granted.…
6
votes
2 answers

Sign App with UICC Carrier Privileges Certificates

I was reading information on this link in regards to signing an application with carrier privileges. I am aware of how to sign an application using a keystore for production releases, but how do I add UICC certificates to my app so it gets carrier…
CompEng88
  • 1,336
  • 14
  • 25
6
votes
1 answer

What exactly does TelephonyManager.getNetworkCountryIso() return?

I want to find out which country the user is currently in, in the event that a data connection is not available (so Geocoder doesn't work). I think I can do this on phones (not tablets) by using TelephonyManager.getNetworkCountryIso, but I find the…
Graham Borland
  • 60,055
  • 21
  • 138
  • 179
6
votes
1 answer

Android 4.2 and above read APN setting

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…
user3051760
6
votes
4 answers

Get own phone number in android (Many issues tested but not worked)?

i have developped an android application, but i need to get the phone number of the phone owner. I have seen many questions here in stackoverflow and many answers but none works for me. I work with Android 2.2: I have tested this code, but nothing…
Zied R.
  • 4,964
  • 2
  • 36
  • 67
6
votes
2 answers

Get mobile network frequency band Android

I'm building an app for Android witch logs some data about phone mobile network, Access Type: (GPRS, 3G, HSPA, LTE) Frequency: (WCDMA 2100 Band 1) LAC: Location Area Code SAC: Serving Area CellID (if 3G) CGI: Cell Global Identifier (if 2G) Signal…
user1936991
  • 73
  • 1
  • 4
6
votes
1 answer

Android: get CellID and RSS for Base Station and Neigboring Cells

I'm trying to get the following data: Base station: CellID and RSS (recognition which one is the base station) For all neigbouring stations: CellID and RSS There are various APIs and it looks like i'd have to use different APIs telephonyManager…
ndrizza
  • 3,285
  • 6
  • 27
  • 41
6
votes
1 answer

How to determine a call made is local or STD OR ISD

I am developing an application which requires to keep track of the outgoing calls made by user, which I am able to track by Using Broadcast Receiver. I also want to detect that is that call is Local or STD or ISD, but I am not able to detect that.
Muni Mishra
  • 409
  • 2
  • 5
  • 16