Questions tagged [phone-state-listener]

A listener class, in Android, for monitoring changes in specific telephony states on the device, including service state, signal strength, message waiting indicator (voicemail), and others.

43
votes
3answers
65k views

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 doin http://blog.whitepages.com/2009/02/27/caller-id-by-whitepages-a-new-android-app-that-puts-telemarketers-...
9
votes
1answer
27k views

Add PhoneStateListener

I'm trying to set up PhoneStateListener but I get a PhoneCallListener cannot be resolved to a type.public class ButtonView extends FrameLayout {PhoneCallListener phoneListener=new ...
2
votes
3answers
10k views

get SignalStrength without Using PhoneStateListener onSignalStrengthchanged

does anyone know how to get the signal strength without having to call the onSignalStrengthChanged. The problem with onSignalStrengthchanged is that is it called when the signal strength changes and ...
2
votes
1answer
4k views

Not getting correct value when retrieving current outgoing phone number in android

I am using the following broadcast receiver to retrieve outgoing phone number. @Overridepublic void onReceive(Context context, Intent intent) {mContext=context;mIntent=intent;...
2
votes
2answers
2k views

Android : why PhoneCallListener still alive after activity finish?

im using a phone call listener in my activity but after finishing my activity , afer user make a call, my phone call listener not dead and brig up activity again !! please help me.phoneListener=...
4
votes
3answers
4k views

Using BroadcastReceiver with functionality of PhoneStateListener

I am trying to make a MissCall App which sends a message automatically when a miss call is received.I had completed my app and it worked fine ! Here is the complete scenario :Problem :The app was ...
-1
votes
1answer
1k views

Android : how to stop listening a PhoneCallListener? [duplicate]

Possible Duplicate:Android : why PhoneCallListener still alive after activity finish? i'm making a call and using a phone call listener to restart activity when phone state back to IDLE . but ...
6
votes
1answer
14k views

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 RSSThere are various APIs and it looks like i'...
8
votes
2answers
2k views

Since Android 6.0 listening to the PhoneStateListener.LISTEN_DATA_CONNECTION_STATE changes seems to no longer require READ_PHONE_STATE permission

I'm applying Android 6.0 runtime permissions into an app which listens to carrier data connection state changes. I first tried to just remove the READ_PHONE_STATE from the manifest to check where the ...
2
votes
3answers
5k views

Incoming number during a call in android?

I am running following code, its compiling but I am not getting any result or toast displayed please help...CustomBroadcastReceiver.javathis class will receive the action phone state change and ...
13
votes
3answers
3k views

Android, TelephonyManager, the joys of PhoneStateListener and incoming numbers

I've very newly gotten into Android development, and decided that my first conquest on this fresh field would be to grasp how the phone reacted to incoming calls.A little googling later led me to ...
2
votes
2answers
6k views

Get RSRP from CellSignalStrengthLte for Android app API 17+

A few people over the past decade have asked similar questions but none have ANY answers. I need to write an android app that collects and stores RSRP, RSRQ, CINR, and Cell ID. The answers need to be ...
2
votes
1answer
4k views

How to get the outgoing call duration in real time?

I have a activity which is brought in front whenever there are any outgoing call. I need the outgoing call duration in real time and show it in my activity textview.Is this possible to get the ...
1
vote
2answers
1k views

Is there any way to know if an outgoing call is accepted?

I'm doing an app that record call (both of them, incoming and outgoing calls). I've just resolved the problem of recording audio from incoming calls, but I've found some troubles with outgoing calls....
4
votes
3answers
5k views

BroadcastReceiver called but PhoneStateListener not called

While debugging the code below, BroadcastReceiverCustom is beingcalled but PhoneStateListenerCustom is not.For now I and doing required action in BroadcastReceiverCustom only,but maynot be best ...
2
votes
1answer
3k views

PhoneStateListener doesn't call

Here is My Whole Code.......BroadcastExample.javapackage com.example.broadcast;> import android.app.Activity; import> android.content.Context; import> android.os.Bundle; import> ...
2
votes
1answer
2k views

ACTION_PHONE_STATE_CHANGED not called on network cell changes

I am trying to make my broadcast receiver fire when the phone goes in and out of reception areas. The issue is the receiver never gets called when the cell reception changes. The BroadcastReceiver ...
2
votes
2answers
6k views

Get phone number of incoming call in all android versions

I am trying to fetch incoming number of incoming call. I searched and found this Retrieve incoming call's phone number in Android.My issue is that I am not able to "incoming number" in version ...
2
votes
2answers
3k views

TelephonyManager.CALL_STATE_RINGING calls twice while one call ringing

I use descendant - class of PhoneStateListener:class CallStateListener extends PhoneStateListener {@Overridepublic void onCallStateChanged(int state, String incomingNumber) {switch (state) ...
1
vote
1answer
1k views

PhoneStateListener() isn´t finished

I implemented a PhoneStateListener how stops audio if you are called and starts it again after you finished.When i exit my app by finish() the PhoneStateListener seems to be still active. After ...
0
votes
1answer
259 views

Start Service from BroadcastReceiver phoneListener

I want to stop the the running service when the phone is ringing and I want to restart the service when the call is answered or just after ringing.I always get an java.lang.NullPointerException if ...
0
votes
2answers
1k views

How to start PhoneStateListener programmatically?

There's an activity in my application. It contains a button. By clicking the button it should be start PhoneStateListener (and BroadcastReceiver?) to catch incoming and outgoing calls. It seems it ...

angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,