Top "Telephonymanager" questions

Telephony class for Android devices

Programmatically obtain the phone number of the Android phone

How can I programmatically get the phone number of the device that is running my android app?

android phone-number telephonymanager
Disable Proximity Sensor during call

I dropped my phone and looks like my proximity sensor no longer works reliably. It returns Near all the time. …

android telephony telephonymanager proximitysensor android-dialer
How to get current SIM card number in Android?

I want to know user mobile number in Android. I used this code but I'm not getting number. TelephonyManager tm = (…

android phone-number telephonymanager sim-card
Getting telephone US local area code with Android

I would like to know how can i get the device/user area code from within my android app I …

telephonymanager android
Retrieve incoming call's phone number in Android

I would like to retrieve the incoming call's phonenumber and do something with it like the do in http://blog.…

android telephonymanager phone-state-listener
How to get phone number of a device programmatically

I am trying to get phone no using following method: private String getMyPhoneNumber() { TelephonyManager mTelephonyMgr; mTelephonyMgr = (TelephonyManager)getSystemService(Context.TELEPHONY_…

android phone-number telephonymanager
How can I check whether the Sim Card is available in an android device?

I need help checking whether a device has a sim card programatically. Please provide sample code.

android telephonymanager
Make call using a specified SIM in a Dual SIM Device

I have been searching for this from past few days and I came to know that: "Dual SIM is not …

android android-intent telephonymanager
How to hang up outgoing call in Android?

I am developing an application where one of the things we need is to control the outgoing call, at least …

android telephony telephonymanager
tm.getDeviceId() is deprecated?

I'm getting the IMEI and device Id's, so here I am getting a problem getDeviceId() is deprecated. TelephonyManager tm = (TelephonyManager) …

java android android-8.0-oreo telephonymanager