telephony

Dynamic Android Call forwarding

谁都会走 提交于 2019-12-25 17:47:26
问题 I'm developing a mobile APP and I need to forward the incoming calls to different numbers based-on contact group. I divided my contacts into groups and each group has a different call forwarding number. When I receive the incoming call I should forward it based-on its group. I wrote this code in PhoneStateListener in Call_State_Ringing: package com.example.user2.callforwardnew; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri;

How to abort an outgoing call after fixed seconds?

落花浮王杯 提交于 2019-12-25 05:56:20
问题 I am working on android app which can make missed call on other phone of particular duration like 5, 10 seconds, I am struck once call is made through a program to a particular number my program loose control, how I can end after some fixed no. of seconds after call is made, the general purpose SDK only allow to initiate call not for abortion. I am new to android and done a deep search on net about this some folks refer using JAVA reflection and internal telephony for this but I wasn't able

Seek Help concerning IVR Menu in Asterisk

白昼怎懂夜的黑 提交于 2019-12-24 20:03:03
问题 I am writing an IVR menu and I need to allow my users to press 0 anytime during the communication to exit. The following is how I do it: exten => 0,1,Playback(good-bye) exten => 0,2,Playback(beep) exten => 0,3,Hangup However, by doing so, when the user presses zero while some file is being played back or some other operation is taking place, he/she cannot exit, it is like if he/she didn't press zero. I hope I am clear enough and that you can help me out with this. cheers 回答1: For an IVR, you

Native phone dialer ghost appears in recent apps after calling setResultData(null);

谁说我不能喝 提交于 2019-12-24 03:09:13
问题 Whenever I try to use my own app to handle an Outgoing call, I see a zombie/ghost/second native phone dialer appear in the recent apps. This seems tied to calling setResultData(null) in my receiver. Nexus 4 (Android 4.3) I've add the correct permissions <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> And registered my receiver as follows <receiver android:name=".OutGoingCallReceiver"> <intent-filter> <action android:name="android.intent.action.NEW_OUTGOING_CALL" /

Native phone dialer ghost appears in recent apps after calling setResultData(null);

可紊 提交于 2019-12-24 03:09:02
问题 Whenever I try to use my own app to handle an Outgoing call, I see a zombie/ghost/second native phone dialer appear in the recent apps. This seems tied to calling setResultData(null) in my receiver. Nexus 4 (Android 4.3) I've add the correct permissions <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> And registered my receiver as follows <receiver android:name=".OutGoingCallReceiver"> <intent-filter> <action android:name="android.intent.action.NEW_OUTGOING_CALL" /

Android: TelephonyManager.getSimSerialNumber() returns null

亡梦爱人 提交于 2019-12-23 19:16:15
问题 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! 回答1: Please make sure whether you have added the following permission in the Android Manifest, if not please add this statement add try again. <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> Note: Add this permission tag outside the application tag.. Sample

Custom Android Telephony application

不想你离开。 提交于 2019-12-23 15:53:46
问题 I assume this is the proper forum , not android.stackechange since it is software related. I am a novice Java developer and need to create a custom Android telephony application with the following functionality launches automatically when device starts , boots launches in kiosk mode, no notifications, or access to other applications! has a single 'call' button which places a phone call to a hardwired phone number. has the ability to communicate 1 way simple data to external device(think

Android: Implement a custom ConnectionService which uses built-in telephony stack

孤街醉人 提交于 2019-12-23 12:08:23
问题 I'm trying to implement a custom ConnectionService in my custom telephony-app. According to the documentation I need to select my registered PhoneAccount as default in the Phones settings menu. However when I'm registering a PhoneAccount to use the native telephony stack the PhoneAccount does not seem to show up for use. Let me show you what I got working so far. This code registers a PhoneAccount that "...is not allowed to manage or place calls from the built-in telephony stack" PhoneAccount

how to dial phone number using .NET?

一世执手 提交于 2019-12-23 04:57:05
问题 i've been searching for awhile on how to dial a phone number programmatically (using C#). i read an article about using Microsoft TAPI to do the job.. however i couldnt fully understand it.. so i was hoping to find alternative ways of doing it or a simpler tutorial than the one offered in msdn. or if possible a C# accessible sim-card reader, which could allow me to sms/dial numbers. 来源: https://stackoverflow.com/questions/1305692/how-to-dial-phone-number-using-net

Mobile Number verification for dual SIM devices in Android

房东的猫 提交于 2019-12-22 08:48:59
问题 I have done the sim/mobile number verification (same like Whats APP) part in my app. something like: Send Message Part: SmsManager sm = SmsManager.getDefault(); sm.sendTextMessage(mobileNumber, null, "Welcome", null, null); Check the message received by the same/current device through BroadcastReceiver: private class SMSReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { if(intent.getAction() != null && intent.getAction().equals("android