telephony

Monitoring MMS_RECEIVED like SMS_RECEIVED on android

谁说胖子不能爱 提交于 2019-12-10 10:45:38
问题 So I'm setting up a program that plays a sound that is set when you receive a message, mms or sms. I got it to work with SMS but MMS doesn't do anything. Here is the code for the class that runs the BroadcastReceiver: /** * This class overrides the main BroadcastReceiver to play the tone * at the given textSoundPath. * @author Jesse Stewart * */ public class TextMonitor extends BroadcastReceiver { public static String textSoundPath; //this is the sound set to play when //sms or mms is

ending call in android using telephonyserivce.endcall()

眉间皱痕 提交于 2019-12-10 10:07:38
问题 I am working on app where i want to end outgoing call. this is the main class import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.util.Log; public class phonecalls extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); call(); }

Telephony parameters not available through framework APIs

主宰稳场 提交于 2019-12-10 09:39:28
问题 I have to fetch the info related to following Telephony parameters: BCCH, Band, DL ARFCN,UL ARFCN, BLER, MOS DL, MOS UL, Txpwr & Handover Parameters. I searched a lot but didn't find any way to get this information through APIs. There may be some other ways (I am not sure), like: Using AT command. Using AIDL, talk to RIL & fetch the info. Using NDK, write c code which will directly talk to modem/low level implementation. But I don't know which is the right way or how to proceed with the right

How to know if i am successfully connected to my outgoing number in Android?

為{幸葍}努か 提交于 2019-12-09 17:53:43
问题 Need to know this so that i could send DTMF and that is going to be my second question! 回答1: You can use the PhoneStateLisenter to listen out for changes in the call state. So you listen for the LISTEN_CALL_STATE change. With the onCallStateChanged method. So when the state changes from RINGING to OFFHOOK you know a phone call has been connected Same principle applies for IDLE to OFFHOOK in your situation, listen out to the change from IDLE to OFFHOOK and you'll know your connected to a call.

Is it possible to forward VoiP call to GSM

我怕爱的太早我们不能终老 提交于 2019-12-09 17:48:22
问题 Is it possible to use an Android phone as a simple GSM gateway? The phone would receive a VoiP call using (preferably) Android built-in SIP stack, initiate a GSM call, and bridge audio both ways. After one call is terminated, the other one ends, too. How could I approach the problem? My earlier attempts failed at bridging audio between connections. Is there a SDK supported way of doing this, that I missed? Or do I need to implement some sort of a workaround? 回答1: There are two problems with

SMS_RECEIVED onReceive android 2.3.5 not triggering

99封情书 提交于 2019-12-09 06:57:26
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="http://schemas.android.com/apk/res/android" package="com.broadcasttech.testsmsreceive" android

Is there a simple way to check if an incoming caller is a contact in Android?

孤街醉人 提交于 2019-12-09 06:36:52
问题 When an Android phone receives a call it automatically checks if the call exists in its own contact database. I was wondering if there is a simple way to access that information. I have a PhoneStateListener that performs certain actions during a ringing state, and I want to check if the incoming caller is in the contacts list. Is there a way to do this without going through the Contacts ContentProvider ? 回答1: The phone app uses the contacts ContentProvider too; I'm not sure why you would want

How to check user entered own phone number in EditText?

大城市里の小女人 提交于 2019-12-09 05:23:13
问题 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 =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(); And compare this variable with edittext's text. But mPhoneNumber returns NULL in my case. Is there any other options? How to solve this ? Any help would be appreciable. I

Android - remove missed call notification

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 01:11:58
问题 is there anyway to remove a missed call notification by code? And somehow remove the last missed call from call history? 回答1: yes, it is possible.Try this: Uri UriCalls = Uri.parse("content://call_log/calls"); Cursor cursor = getApplicationContext().getContentResolver().query(UriCalls, null, null, null, null); Reading call log entries... if(cursor.getCount() > 0){ cursor.moveToFirst(); while(!cursor.isAfterLast()){ String number = cursor.getString(cursor.getColumnIndex(CallLog.Calls.NUMBER));

Check to see if telephone number is active/real [closed]

放肆的年华 提交于 2019-12-08 08:49:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a new project on hand on which is quite complex as i am not aware of its domain. My requirement is this, We have list of telephone numbers and from this list i need to check which telephone number is active/real. How would you program a telephony or IVR system to automatically dial phone numbers on this