telephony

Broadcast receiver for Phone State changed not working

一个人想着一个人 提交于 2020-08-25 07:42:15
问题 i have created a broadcast receiver for Phone state change. but the broadcast is not working. i have been trying from couple of hours and tried 2,3 solutions but still its not working. other guys over internet have same code and the is working fine for them. i don't know where i am making mistake. need your help! Here are my manifest File <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="veclar.map.callandsmsblocking"> <uses

is Android not supporting USSD CALL?

旧城冷巷雨未停 提交于 2020-01-30 11:40:48
问题 I'm trying to make a USSD call on my app I tried to do this : Intent fastCall = new Intent(Intent.ACTION_CALL); String Num = "*100*200"+ Uri.encode("#"); fastCall.setData(Uri.parse("tel:" + Num)); startActivity(fastCall); but I keep getting an error: Connection problem or invalid MMI code what can I do ? or should I just use ACTION_DIAL ? any idea ? 回答1: No Android does not fully support USSD. Notice that there are no actual USSD APIs. Your dialer may or may not send USSD codes. Really its a

is Android not supporting USSD CALL?

偶尔善良 提交于 2020-01-30 11:39:09
问题 I'm trying to make a USSD call on my app I tried to do this : Intent fastCall = new Intent(Intent.ACTION_CALL); String Num = "*100*200"+ Uri.encode("#"); fastCall.setData(Uri.parse("tel:" + Num)); startActivity(fastCall); but I keep getting an error: Connection problem or invalid MMI code what can I do ? or should I just use ACTION_DIAL ? any idea ? 回答1: No Android does not fully support USSD. Notice that there are no actual USSD APIs. Your dialer may or may not send USSD codes. Really its a

What is the value of SIM state when “airplane mode” is turned on

雨燕双飞 提交于 2020-01-24 09:48:05
问题 I wonder what is the value of SIM state returned by TelephonyManager.getSimState() when "airplane mode" is turned on? This seems to be not directly specified anywhere in the SDK specification. Actually I need to get SIM operator code (i.e. MCC+MNC) using getSimOperator() method, but JavaDoc states that to use that method: SIM state must be SIM_STATE_READY UPDATE I tested it under emulator and it returns SIM_STATE_UNKNOWN (which is described by javadoc as a "transition between states") after

retain original caller id on Call transfer on asterisk

廉价感情. 提交于 2020-01-23 16:52:12
问题 I am running a B2C outbound Campaign on VicidialNow C.E 1.1 as Asterisk Server / SIP Server . The call is made from server to customer and connected to agents waiting for calls. The agents transfers the call to third party (not a blind transfer). The 3rd party sees the Caller ID of agent. Now, what I want is to display the caller id or the phone number of the customer to the 3rd party. I Googled and searched over SO, found this sendrpid=pai to add on sip.conf file. but this functionality only

Automatically revert to previous default SMS app

一笑奈何 提交于 2020-01-22 15:30:05
问题 I have an app that requires temporary access to the device's SMS. In KitKat and above, this access is only granted to the default SMS app, so I'm using: Intent intent = new Intent(Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT); intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, getPackageName()); startActivity(intent); This brings up a dialog asking the user if they let my app become the default SMS app. So far so good. Problem is, once my app completes its operation, I have to ask the

SMS_RECEIVED onReceive android 2.3.5 not triggering

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 04:41:10
问题 I've been puzzling over this one recently, prior to 2.3.5 this seems to work fine (on my colleagues devices). However on mine it now never triggers. I've stripped the code right back and made a very simple test application to see what's going on. Basically the onReceive code doesn't ever appear to trigger, even though adb/logcat does seem to show the register of the BroadcastReveiver does take place. Here's the simple code I've gone for: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns

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

南楼画角 提交于 2020-01-12 07:55:24
问题 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 and PhoneStateListener. I'm a littlebit confused, as I think this should be available in one interface. Also I think that it should be possible to poll the CellID of the current Base Station instead of having to listen to State Changes to determine int

Understanding how SIP, WebRTC and PSTN work together [closed]

∥☆過路亽.° 提交于 2020-01-12 05:35:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have been learning more about WebRTC, SIP and PSTN and how they work together especially the ability to receive phone calls in browser. I have spent some time on Twilio's website and I like the way they are able to make you receive a phone call From PSTN to your browser. I want

Kill a phone call programatically in Oreo

妖精的绣舞 提交于 2020-01-05 17:00:18
问题 I am using this method to end a call in android public boolean killCall(Context context) { try { // Get the boring old TelephonyManager TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); // Get the getITelephony() method Class classTelephony = Class.forName(telephonyManager.getClass().getName()); Method methodGetITelephony = classTelephony.getDeclaredMethod("getITelephony"); // Ignore that the method is supposed to be private