Thank you very much for helping me out! Kinda got this to work. To intercept the call completely, you have to set the priority to -1 like this:
<intent-filter android:priority="-1"> <action android:name="android.intent.action.NEW_OUTGOING_CALL" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> And also, you'll need to set the PROCESS_OUTGOING_CALLS permission: <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /> There's no way (that I know of) to test it in the emulator. I have to have a friend to install the app in his phone and test it out for me. It works for him, my app will intercept the phone number sent by the dialer and it'll never do the actual call. The problem is that my friend will NEVER make a call unless he uninstall my app. I want people to have an option to call using my app or the dialer itself. Right now, my app is a BroadcastReceiver class. So, it'll ALWAYS listen to the NEW_OUTGOING_CALL intent passively. I'm thinking about making my app a background service instead of a broadcast receiver, maybe that'll work? I believe that's how SipDroid does it. It's getting late now and I need to sleep. I'll probably have some time tomorrow or so to research more about it and I'll post my findings here if I find a correct way to do it. On Jul 12, 11:28 am, Denis Souza <denis.so...@gmail.com> wrote: > You can declare a BroadcastReceiver to for the NEW_OUTGOING_CALL > intent such as: > > <intent-filter android:priority="1"> > <action android:name="android.intent.action.NEW_OUTGOING_CALL" /> > <category android:name="android.intent.category.DEFAULT" /> > </intent-filter> > > That would intercept an outgoing call after it's dialed. > > More on > this:http://developer.android.com/reference/android/content/Intent.html#AC... > > I don't know how you would actually make the call go through a SIP > connection but I guess this is a good start. > There's an open source project called Sipdroid that does exactly that. > Maybe you can take a look at their source code to see how it's done. > > On Jul 12, 3:46 am, Randall <randallnori...@gmail.com> wrote: > > > > > I'd like to know this as well. Did you find out how to do it, yet? > > > On Jun 30, 1:41 pm, Jaap <jaap.hait...@gmail.com> wrote: > > > > Maybe I did not explain myself well. What I want is somebody to use > > > the defaultphoneapplication on Android but when the call button is > > > pressed my application gets thenumberand no call is being placed. > > > > Jaap > > > > On Jun 26, 10:30 pm, Jaap <jaap.hait...@gmail.com> wrote: > > > > > Hi, > > > > > There are some programs to make calls via SIP with android. Nice thing > > > > is that they work transparently. That is you can use the standard > > > > androidphonedialerbut the call goes via SIP. > > > > > How can you use the androiddialerto do this? > > > > > Thanks > > > > > Jaap -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en