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
1 answer

how to disconnect the call in android 4.1.2 nexus programmatically

i am able to disconnect the call programmatically for incoming unknown number call in android 2.2. But in android 4.1, its not working. Working Code to disconnect the call in android 2.2: private Class c; private Method m; private…
AndroidRaji
  • 907
  • 14
  • 26
6
votes
2 answers

How to track the messages in Android?

I want to develop an app which tracks the sent/received SMSs. I mean, when a user sends a message from its device, the message detail should be saved to a table provided by me. Similarly, when the device receives any SMS, then that also should be…
Chandra Sekhar
  • 18,914
  • 16
  • 84
  • 125
5
votes
2 answers

how to find outgoing number in Telephony manager

I am using this: public void onCallStateChanged(int state, String incomingNumber) which is listening to: telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE); I want to know both outgoing and incoming calls but for now I only get…
Swati
  • 153
  • 1
  • 5
  • 10
5
votes
0 answers

Android 11 5G fetching Cell Parameters

I am trying Android 11 on network type 5G on new Android studio preview release. My aim is to fetch Cell Info details. However , the method getAllCellInfo() returns an empty/null list on emulator. All emulators priori to Android 11 do return a valid…
Richa
  • 66
  • 3
5
votes
1 answer

Detect 5G NR (SA/NSA) in my Android Application

I am trying to detect 5G network. I use the telephony manager to get NETWORK_TYPE. Even if I am in 5G network coverage and my phone shows 5G, I do not get NETWORK_TYPE_NR. The NETWORK_TYPE is always 13 i.e. LTE. The Phones Engineering service mode…
5
votes
3 answers

Get mobile data usage in Android 10

I'm trying to make a network usage monitor app, which shows mobile data usage history to the user. For this I'm using Usage access to get accurate data usage stats from NetworkStatsManager. But this no longer works in Android 10. I'm using…
5
votes
3 answers

Android: TelephonyManager.getSimSerialNumber() returns null

in which cases this method returns a null reference? Can only depend on the sim card? Doesn't exist, in these cases, an alternative to retrieve an identification number of the latter? Thanks to all!
Vincenzo
  • 51
  • 1
  • 1
  • 2
5
votes
0 answers

What exactly is CellInfo and how to use getAllCellInfo to get info just about one connectivity type?

GOAL: get info (signal strength) of a particular type of connectivity (the one I'm actually using). PROBLEM: I'm not sure to understand exactly what does reperesent CellInfo and how to extract info from getAllCellInfo QUESTIONS: 1) From android…
Maicake
  • 1,046
  • 10
  • 34
5
votes
4 answers

getAllCellInfo() returns an empty list in Huawei Honor 7

I am having an android application that fetches information of cell towers. I use this getAllCellInfo() to fetch info of a primary cell and neighbour cells. I included the ACCESS_COARSE_LOCATION permission to manifest.xml and make a request for the…
phuwin
  • 3,130
  • 4
  • 26
  • 49
5
votes
1 answer

How to access the Android call list?

Hey, I want to access the Android call list, so I can see the contact name, the hour of the calling, the duration, the hour of the calling and the date. Where is it, and how can I access it? Thanks.
rogcg
  • 10,451
  • 20
  • 91
  • 133
5
votes
0 answers

Number phone not display onCallStateChanged Android

I have created an app, and my app have a feature relate to get number phone when have incomming phone, but i can not catch number phone, it is empty My Service public int onStartCommand(Intent intent, int flags, int startId) { TelephonyMgr =…
5
votes
2 answers

How to get the current location and outgoing call off-hook time(exact call picked time)?

I want to get the location and time and date of the outgoing call in android.Here i'm using one broadcast receiver for detecting new outgoing calls, within the broadcast receiver i'm starting one service which can implements the location receiver,…
Narendra Baratam
  • 828
  • 1
  • 12
  • 26
5
votes
4 answers

Android - How to detect outgoing call is answered or received?

Is there any way to detect outgoing call is successfully received or answered ? I am using Intent.ACTION_CALL for dialing a call and PhoneCallListener to find the state of a call when outgoing call answered but I couldn't have been achieving this.…
5
votes
1 answer

Detect Call On Hold

I wanted to know if there is any definitive way to know if the call is put on hold by the receiver on the receiver side only. Now I checked the Telephony documentation, and this shows that there are three states for a call : CALL_STATE_IDLE: When…
DevangM
  • 63
  • 3
  • 9
5
votes
2 answers

Android-Telephony application that keeps focus on incoming calls

I am developing a custom telephony application that is able to receive calls. Using this code for handling the incoming…
Bachalo
  • 6,965
  • 27
  • 95
  • 189