phone-call

Blackberry - make a call from native address book

烂漫一生 提交于 2019-12-02 03:29:10
how to make a call from menu item appended in native book of BB('Call from ABC' option)? Initiate call programmatically For RIM OS 4.7 and lower use Invoke : PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL, "555-5555"); Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs); For RIM OS 5.0 declared we can use Phone.initiateCall method: Phone.initiateCall(Phone.getLineIds()[0], "519-555-0100"); See Make a call from a BlackBerry device application (multi-line environment) Add custom menu item to BlackBerry application To add your "Call via ABC" item to address book menu

On Android : making a phonecall using a browser application

心不动则不痛 提交于 2019-12-02 01:46:47
On Android devices, does anyone has checked that if a user clicks on a link <a href='wtai://wp/mc;5551231367' title='Call'>555.123.1367</a> this would propose the user to make a call to this phone number ? If not, do you know how is it possible to do it ? The link needs to be <a href="tel:<number you want to have dialled"> Call </a> so for the number you used: <a href="tel:5551231367"> Call 555.123.1367 </a> 来源: https://stackoverflow.com/questions/1022125/on-android-making-a-phonecall-using-a-browser-application

How to reject/close specific incoming number

旧城冷巷雨未停 提交于 2019-12-02 01:23:27
In my application I want to block the specific incoming number.I do google,and following Blocking Incoming call - Android . But this code is not working for me.I am testing on android 2.3.5 Here I have no activity class. >> First class is extends BroadcastReceiver. manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.blocknumber" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.READ_PHONE_STATE

How to detect a call Drop in android

混江龙づ霸主 提交于 2019-12-01 23:56:07
I'm writing an app that runs on background during a telephone conversation and logs the coordinates to a file after the conversation has end,I know Android telephony API can detect a call manual disconnect by user*(correct me,if I'm wrong)*, But what I want is to know whether the service disconnection have caused due to call drop,is there a way or an API I can use to achieve this, All what I need is to programmatically differentiate a disconnected call and a dropped call. Please help. jobin Try this code, but I am not sure.. private getCallFailedString(Call call) { Phone phone = PhoneApp

How to detect incoming call with the help of Broadcast Receiver?

断了今生、忘了曾经 提交于 2019-12-01 23:32:32
I'm trying to recognize incoming calls in thru a broadcast receiver. I'm UNABLE to do so! Infact, I'm unable to 'trigger' the broadcast! Here's my code: activate.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getApplicationContext(),"Clicked",1).show(); final String BROADCAST_ACTION_NAME = ".BroadcastMM"; Intent intent = new Intent(); intent.setAction(BROADCAST_ACTION_NAME); sendBroadcast(intent); } } I dunno if this 'sendBroadcast' is ever triggered! In my Broadcast Receiver file: public void onReceive(Context context, Intent intent) { if

Find if user is in a call or not?

折月煮酒 提交于 2019-12-01 21:16:55
问题 I wanted to see if a user was using the application and to see if they were in a phone call or not. I was following this link to see check if a user was in a phone call or not: iOS How to check if currently on phone call. However, this looks like it's for Objective-C. I was wondering if there was a Swift equivalent for this. This is my attempt: var currCall = CTCallCenter() var call = CTCall() for call in currCall.currentCalls{ if call.callState == CTCallStateConnected{ println("In call.") }

Is it possible to simulate a phone call on iPhone simulator?

你离开我真会死。 提交于 2019-12-01 21:14:56
I am building an app that will make a phone call. How can I test this feature on the simulator? I get no response when I call openURL . Though of course this does work on the actual device. Also is it possible to know whether the iPhone is currently in calling mode? Sorry Pal. You cannot check it in on a simulator. All the best. 来源: https://stackoverflow.com/questions/4447763/is-it-possible-to-simulate-a-phone-call-on-iphone-simulator

Unity3D - Audio playing getting muted after getting any call/notification on Android

不羁岁月 提交于 2019-12-01 20:57:21
问题 I have audio playing issue on Android build. I'm using Unity 5.4.0b15, but I had same issue on 5.3.4p3. I have simple component for playing background music added to "AudioPlayer" GameObject in my scene. public AudioClip clip; private AudioSource _musicAudioSource; private void Awake() { if (_musicAudioSource == null) { _musicAudioSource = gameObject.AddComponent<AudioSource>(); } _musicAudioSource.loop = true; _musicAudioSource.clip = clip; _musicAudioSource.Play(); } After running game on

How to Make a Call directly in Android

▼魔方 西西 提交于 2019-12-01 20:44:24
问题 I know it was very simple to do it but I come across a very strange issue. I have to call Police in danger Situation by just tapping a button. So I have used following code to call. Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:100")); callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ctx.startActivity(callIntent); Added CALL_PHONE permission in AndroidManifest.xml . The Issue is that it is opening the 100 on Dial Pad but not making call directly. I

Detect outgoing calls, issue with a real device

谁都会走 提交于 2019-12-01 20:20:22
I have a strange problem. To detect outgoing calls I have registered a broadcast receiver for android.intent.action.PHONE_STATE . When the state becomes OFFHOOK, then a conversation is started. It seems working on emulator: the debugger in fact reaches some code while it doesn't work on real device (Acer Liquid). Is it possible? Which is a way to detect outgoing calls? Well, if it works on the emulator, I would expect it to work on the device. You might registering a PhoneStateListener with the TelephonyManager via listen() and see if it gets you better results. If you think of it, comment on