Questions tagged [telephony]

related to transmitting or receiving data over telephone networks.

820 questions
18
votes
6 answers

How to detect if device is capable of calling and messaging

Some devices ie. Galaxy Tablet 10.1 can only send SMS, but cannot call. Some other devices like Asus Transformer don't even have SIM card. How can I detect if device can makes calls? And how can I detect if device can send SMS?
Mikooos
  • 5,360
  • 5
  • 31
  • 45
16
votes
3 answers

How to get current cell signal strength?

I would like to store the cell signal strength, and I do it like this: private class GetRssi extends PhoneStateListener { @Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { …
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222
15
votes
5 answers

How to end an incoming call programmatically on Android 8.0 Oreo

Up to Android 7.1 it was possible to end an incoming call by using the ITelephony.endCall() method and giving your app the permissions android.permission.CALL_PHONE and android.permission.READ_PHONE_STATE. When doing the same on Android 8.0 Oreo…
15
votes
4 answers

Web API to make phone calls

is there an API to make phone calls an have a phone conversation in the web (maybe flash based?), like skype but without having to install software? thanks
Victor
  • 23,172
  • 30
  • 86
  • 125
15
votes
6 answers

Rejecting Incoming call in android

I want to reject incoming in android, I have seen so many code from these links. Android: Taking complete control of phone(kiosk mode), is it possible? How? How to Reject a call programatically in…
Zubair
  • 304
  • 1
  • 5
  • 19
14
votes
3 answers

Is APN login information stored on SIM cards?

I am interfacing with a GSM modem module through the standard GSM AT command interface. Right now the access point names (APN), user names, and passwords for each known carrier are hard coded in my software. I am wondering if this information is…
FazJaxton
  • 7,544
  • 6
  • 26
  • 32
14
votes
3 answers

TelephonyManager deprecated listen() CALL_STATE_RINGING on android 12

I'd like to listen if there's a phone call happening while my app is in the foreground. It was like this before but now listen() is deprecated: val tm = context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager …
Orcun Sevsay
  • 1,310
  • 1
  • 14
  • 44
13
votes
1 answer

Android: how to detect a private number programmatically

I use BroadcastReceiver to intercept incoming call on Android phone as below tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); Bundle bundle = intent.getExtras(); String number =…
Bao Le
  • 16,643
  • 9
  • 65
  • 68
13
votes
5 answers

Change mobile network mode (gsm, wcdma, auto)

I want to change the preferred network mode ie. gsm or wcdma or auto, programmatically, from code, on Android. Is this possible, and if so how ?
Mohammed Azharuddin Shaikh
  • 41,633
  • 14
  • 96
  • 115
12
votes
1 answer

Reflection methods are not working when used proguard for android application

I am facing a problem when i use proguard for application having used telephonyservice apis using reflection in android. I have defined a package com.android.internal.telephony and there i have copied ITelephony.aidl file. Here is the snippet of…
nawab
  • 362
  • 4
  • 9
11
votes
2 answers

How to Reject a call programatically in android

In my app I will maintain a list of contacts. Any calls from contacts in the list will be dropped. They will show under missed calls but the phone will not ring.
harish
  • 255
  • 1
  • 3
  • 13
10
votes
2 answers

What does the different Call states in the Android telephony stack represent?

The internal Android class com.android.internal.telephony.Call contains an enum called State and defined as follows: public enum State { IDLE, ACTIVE, HOLDING, DIALING, ALERTING, INCOMING, WAITING, DISCONNECTED, DISCONNECTING; public…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
10
votes
4 answers

Phone call state

How do we know programmatically that the call I am making is received in the other side ? I know that there are some phone states like IDLE, OFFHOOK and RINGING. I want to be notified that the outgoing call I am making is received, is disconnected…
Shaista Naaz
  • 8,281
  • 9
  • 37
  • 50
10
votes
1 answer

Fake Incoming Call on an Android device

Is there a way to fake calls for android devices that I have plugged in via usb? Some way to trigger a call using ADB? If so, how do I do it? I feel like this might be a duplicate question but I can't find a SO question for it. This is the closest…
Andrew T.
  • 4,598
  • 4
  • 35
  • 54
10
votes
5 answers

How to check user entered own phone number in EditText?

Mobile number will be entered in an edittext by user on registration page in my Android application. How can I check that user entered his/her mobile number not other's ? I've tried this : TelephonyManager tMgr…
Manish Dubey
  • 4,206
  • 8
  • 36
  • 65
1
2
3
54 55