phone-call

Media Recorder To record calls is sometime unable to Record other side voice

走远了吗. 提交于 2019-12-18 03:21:05
问题 In my application there is a feature to record voice calls and it works perfectly well. But when tested on (Samsung s7, s8 ) it doesn’t work well. The application is able to record only callers voice not the voice from the other end. Below is my code to check please suggest a solution MediaRecd = new MediaRecorder(); MediaRecd.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL ); MediaRecd.setAudioChannels(ConstantVariables.audioChannels);//monoRecording MediaRecd.setAudioEncodingBitRate(64)

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

浪子不回头ぞ 提交于 2019-12-18 03:11:11
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

橙三吉。 提交于 2019-12-18 03:11:06
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

Make Call in Android Application using default call application

空扰寡人 提交于 2019-12-17 20:19:24
问题 I am using following code to make a call from my android application: Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:9898989898")); startActivity(intent); This opens Intent Chooser if Skype is installed in phone. What i want is it should directly make call from default call application. How can I achieve this? 回答1: Use intent.setPackage("com.android.phone"); Like Intent intent = new Intent(Intent.ACTION_CALL); intent.setPackage("com.android.phone"); intent

How to reject incoming call programatically in android? [duplicate]

依然范特西╮ 提交于 2019-12-17 17:59:54
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How to block calls in android Can any one tell me how to reject incoming call programatically in android ? 回答1: Let us implement this solution in 3 steps : a. Define this class or receiver : This is your main class : package com.sample; import java.lang.reflect.Method; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import

Android Call Recording Incoming voice not getting recorded

末鹿安然 提交于 2019-12-17 17:34:23
问题 I'm working auto call recorder app, I'm able to record voice call on below android 6 using MediaRecorder.AudioSource.VOICE_CALL , From android 6 not able to record voice call using VOICE_CALL . I managed to record using MediaRecorder.AudioSource.MIC but here incoming voice not getting recorded and I want to record voice call in normal mode not in speaker on mode. Please help me on this. (I had tried on Xiomi Redmi 4a(android 6),not working). myRecorder.setAudioSource(MediaRecorder.AudioSource

make a phone call click on a button

ぃ、小莉子 提交于 2019-12-17 15:22:47
问题 I'm trying to make a call when I press a button in android ((Button)findViewById(R.id.button1)).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { String phno="10digits"; Intent i=new Intent(Intent.ACTION_DIAL,Uri.parse(phno)); startActivity(i); } }); But when I run and click on the button it gives me the error ERROR/AndroidRuntime(1021): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat

How to record call in android? Is it possible?

扶醉桌前 提交于 2019-12-17 13:58:11
问题 I want to record call from android phone. I am using android.media.MediaRecorder pckg. Also used following code: mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); But I didn't succeed in recording an incoming call. Can anyone recommend a tested code snippet? Also, Is this true? http://groups.google.com/group/android-developers/browse_thread/thread/c2bc85eb60ae2aa5?pli

Stream audio to a phone call Android

一笑奈何 提交于 2019-12-17 09:47:17
问题 I am attempting to send an audio stream out over a phone call on Android. For example, to create an app which would play some custom on-hold music, or answer a call and play a recording/audio file. I know it is possible to have an app automatically answer a call, but can it send audio to the caller? If it is possible, please let me know what classes/functions handle this. 回答1: Writing to the phone call stream IS possible, but not from the app level on a stock (non rooted) phone. When a phone

How to import com.android.internal.telephony.ITelephony to the Android application

落爺英雄遲暮 提交于 2019-12-17 09:42:06
问题 I want to hang up incoming call I detect it and then I want to hang it up. The problem is that this: com.android.internal.telephony.ITelephony is not resolved. I tried to adding package com.android.internal.telephony to my application and create interface: package com.android.internal.telephony; public interface ITelephony { boolean endCall(); void answerRingingCall(); void silenceRinger(); } but the call is not ended. Here I detect call, display toast(it is displayed) then try to hang up but