phone-call

Detecting whether or not device support phone calls?

回眸只為那壹抹淺笑 提交于 2019-12-17 06:27:36
问题 Is the below code reliable to be used to determine whether a device can support phone calls or not? My concern is if apple changes the iphone string to anything else let's say they decide to have "iphone 3g", "iphone 4" etc. [[UIDevice currentDevice].model isEqualToString:@"iPhone"] 回答1: The iPhone supports the tel:// URI scheme. So you could use: [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel://"]]; canOpenURL: explicitly checks whether there's an application

Play an audio clip onto an ongoing call

假如想象 提交于 2019-12-17 06:12:34
问题 Is it possible to modify an active call by overlaying a sound track during the call? I looked up the SDK, but couldn't find any API to do this in the documentation. I am trying to investigate the feasibility of playing a previously recorded call/audio clip onto an ongoing call. 回答1: Is it possible to modify an active call by overlaying a sound track during the call? No, sorry, there is no API to access the in-call audio stream. 来源: https://stackoverflow.com/questions/3900564/play-an-audio

How to trigger a phone call when clicking a link in a web page on mobile phone

懵懂的女人 提交于 2019-12-17 05:21:49
问题 I need to build a web page for mobile devices. There's only one thing I still haven't figured out: how can I trigger a phone call through the click of text? Is there a special URL I could enter like the mailto: tag for emails? Device specific solution are not preferred. I know iPhone automatically recognizes phone numbers and creates a link for this, but it would be great if this could be done for images too... and also for most mobile devices. 回答1: Most modern devices support the tel: scheme

How to block a mobile number call and message receiving in android application development?

半世苍凉 提交于 2019-12-17 04:15:02
问题 I would like to implement an application for block a mobile number for receiving or sending calls and messages. In my application I am entering mobile number at EditText box then I am clicking a button for block the mobile number which has entered by the user. I have implemented an activity class as follows: public class BlockNumberActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

How to make a phone call programmatically?

孤街浪徒 提交于 2019-12-17 03:23:03
问题 I'm passing to an activity the number to call by a bundle and then, in such activity, I have a button to call to that number, this is the code: callButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(bundle.getString("mobilePhone"))); } }); Something is wrong, because when I press the button nothing happens... What am I doing wrong? PD: I'm using Android 1.5 compatible project... maybe phone call is

How to override default call screen?

情到浓时终转凉″ 提交于 2019-12-14 03:34:21
问题 I want to launch my customized screen when user dials any number from my android app instead of default caller screen. 回答1: Generally speaking, in order to know how to override any default Activity, first you need to know the structure of the Intent that can launch the Activity. Determining the structure of the Intent Open Android Monitor (aka Logcat) Filter the log to only show those matching the string "ActivityManager" Launch the Activity that you want to override. In your case, launch the

Open phone app without calling

冷暖自知 提交于 2019-12-14 02:28:24
问题 What i need is to open the phone app but without calling . Just to open the phone app and to have the number appear but give the user the option to press dial . Is this possible ? 回答1: You can't do that, but you can make the device pop up a dialog with a Call button which will start a phone call: [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@"tel://1-800-555-5555"]]; 来源: https://stackoverflow.com/questions/6584258/open-phone-app-without-calling

How to insert photo in call intent?

青春壹個敷衍的年華 提交于 2019-12-14 02:27:45
问题 If I use the Android Phone app to call, the app shows a photo from the contact that I am calling. But, if I use an intent to call the Phone app (below code), there is no photo. Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:1234567890")); startActivity(callIntent); How do I show the contact's photo when calling? Thanks! 回答1: http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL I'm assuming you need to pass the Uri of a phone

Is it possible to play music during calls so that the partner can hear it ? Android

白昼怎懂夜的黑 提交于 2019-12-13 11:34:23
问题 I'm trying to make and app like Call Cheater(Originally developed for Symbian OS) Is it possible to play a music during a phone conversation where receiver and caller should hear the same sound or music? If yes how can I implement this? 回答1: You failed to find an app that does this because it is not possible . The documentation clearly states (here): Note : You can play back the audio data only to the standard output device. Currently, that is the mobile device speaker or a Bluetooth headset.

Make a call and play a message? (Android 1.6)

时光怂恿深爱的人放手 提交于 2019-12-13 07:28:43
问题 I have an application that will need to make a call and play a recorded message. Is that even possible? 回答1: No, sorry. You can initiate a call with the right permission, but you have no way to play the recorded message. 来源: https://stackoverflow.com/questions/3764057/make-a-call-and-play-a-message-android-1-6