phone-call

Detect target phone number on incoming call is it for SIM 1 or for SIM 2?

一曲冷凌霜 提交于 2019-12-03 09:57:34
问题 I have an Android phone with 2 SIM card and I want to detect the target of the incoming call — is it for SIM 1 or for SIM 2. Is it possible to get the target number from call info? 回答1: Finally I got the solution using this code. Hope it should helpful for everyone who wants to handle Dual SIM phones. Its working fine for me. Please add below codes in your BroadcastReceiver class: public class IncomingCallInterceptor extends BroadcastReceiver { @Override public void onReceive(Context context,

How to know callee is answered the call (What is the phone state when he lift the call)

半世苍凉 提交于 2019-12-03 09:52:38
I am trying to know how to alert when the callee lifts the call. I have used PhoneStateListener along with BroadcastReceiver . Generally it has three states CALL_STATE_IDLE , CALL_STATE_OFFHOOK, CALL_STATE_RINGING . CALL_STATE_OFFHOOK state was calling when call is connecting, No state of the above three states was called after callee answered call. Here is my BroadcastReceiver. public class PhoneStateBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService

How to make an incoming call on my mobile trigger an action on my pc

馋奶兔 提交于 2019-12-03 08:48:14
问题 I have a specific scenario in mind, but I will ask this generally: Is there a way to make my mobile phone trigger an action on my computer? I am thinking that with a smart phone it must be possible to link the phone and the personal computer with bluetooth, and have some sort of small program running on my computer that will listen for incoming phone calls on the phone. When someone calls me, I want my mobile to simply submit the callers phone number to the personal computer, and then the

How to make incoming call in Genymotion emulator for Android?

扶醉桌前 提交于 2019-12-03 06:55:37
问题 How can I make an incoming call in Genymotion emulator for Android? I am using Genymotion emulator to run and test my application. In the native emulator DDMS, we can make a fake call. Can this be done using the Genymotion emulator? 回答1: There is no way to do that in Genymotion yet. UPDATE: Since version 2.4.0 Genymotion supports phone ans SMS emulation. You can control it from the UI, using the dedicated widget or the Java API to launch it from your Java instrumented tests code. Disclaimer:

Android - How to detect outgoing call is answered or received?

风流意气都作罢 提交于 2019-12-03 03:48:26
Is there any way to detect outgoing call is successfully received or answered ? I am using Intent.ACTION_CALL for dialing a call and PhoneCallListener to find the state of a call when outgoing call answered but I couldn't have been achieving this. Is this possible in android ? Mohammad Qandeel After deeply working on this issue, I reached this conclusion: PhoneStateListener won't work for outgoing calls, it calls OFFHOOK instead of RINGING and OFFHOOK is never called on ANSWER. Using NotificationListenerService , you can listen to posted notifications related to outgoing calls. You can do

Android Intent call number

一笑奈何 提交于 2019-12-03 03:13:59
I have my phone number at TextView and want to open "Intent-picker" to choose application that I want to call with(Skype, Viber...) or just dial to call it. Intent callIntent = new Intent(Intent.ACTION_CALL); calls instantly so it doesn't help me. JonasCz says Reinstate Monica I think you are looking for something like this: Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:0123456789")); startActivity(intent); This opens the dialer (or creates a chooser dialog if there are multiple apps installed which can place a phone call) with the number filled in, but does not

How to make an incoming call on my mobile trigger an action on my pc

给你一囗甜甜゛ 提交于 2019-12-02 22:44:33
I have a specific scenario in mind, but I will ask this generally: Is there a way to make my mobile phone trigger an action on my computer? I am thinking that with a smart phone it must be possible to link the phone and the personal computer with bluetooth, and have some sort of small program running on my computer that will listen for incoming phone calls on the phone. When someone calls me, I want my mobile to simply submit the callers phone number to the personal computer, and then the personal computer will do its stuff from there. Then, I want to handle the call on the mobile phone as

Change voice during phone call android

拟墨画扇 提交于 2019-12-02 18:29:44
I want to make an android application that allow user change the voice during phone call. For example: You are a man, you can change the voice to a woman or robot when talking over phone. It is like a funny prank. I work around android's API and google for some days but still have no idea. Some one told is impossible but I see some app on google play can do: https://play.google.com/store/apps/details?id=com.gridmob.android.funnycall So I think there are some ways to do that. I think about recording and play back by using AudioTracker but I have 2more problem: 1. I cannot mute the voice from

Count unreaded Number of missed call and message in Windows phone

送分小仙女□ 提交于 2019-12-02 12:24:47
How to display badge of unread message and call in windows phone 8 application? I want display notification count in my application icon when I open application at that time it will remove like call and message application. I know the tile notification but i don't know how remove badge when I open application Note: how to send and receive toast notification with badge I got the solution... Handle tile pragmatically in windows phone. ShellTile tile = ShellTile.ActiveTiles.First(); if (null != tile) { // create a new data for tile StandardTileData data = new StandardTileData(); tile foreground

Is it possible to hide the number that is called from an app?

廉价感情. 提交于 2019-12-02 12:20:24
问题 I have a list of people in my app and when the user taps one of the list items, that person is called. Is it possible to hide the called number, so the person would be called but the number would't show in android dialer application and during the calling? 回答1: No. When you pass the Intent off to startActivity or startActivityForResult, the other activity has control until that activity exits. This is to prevent apps from making calls to 900 numbers without the user's knowledge. 来源: https:/