I am looking for a way to do a certain function each time the phone receives a call. How can I override the usual call serviece or add functionallity to it?
It's not possible to do this in WP8.1. You cannot hook into the calling system in this way.
Related
Is there an event for when a phonecall is made from windows phone, and the call ends? if not is it there another possible way of getting such an event?
thanx
No you cannot. Windows phone SDK is not providing any such API for developers. Sorry.
Within the Windows Phone SDK calls are currently regarded as "non of your business" as an app developer. You can "launch" a call with PhoneCallTask, but you won't know if the call actually happened, when it ended etc. From your app you will just have to make sure you'll handle the application lifecycle well.
I'm researching about the technological options for an idea I'm turning into a product.
From some scattered information on the web, I came to understand that replacing the default dialer is not possible. However, searching the WP store brings several dialers. Since I do not own\have a Windows Phone, I am not sure whether these dialers are just apps added to the metro.... or something tht actually becomes the default dialer.
My Question: I'd like to intercept the call when it is placed by the phone owner, do some manipulations and then either run my own app or pass it to the default dialer. Is this possible?
This isn't possible, there aren't any events that you can hook into when the device receives a phone call.
The apps you refer to are just that, apps, and although they look like a replacement to the dialer, they are infact just screens constructed to look this way.
They hook into the PhoneCallTask, a link to how to use this is as follows :-
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394025%28v=vs.92%29.aspx
Additional dialers are merely applications, it's not possible to replace/change the default dialer in Windows Phone 7.~
I currently have a "dumbphone", but I'm trying to make an app that'll time and store the call duration of incoming calls for windows 7.1 ("7.5") phones, for the user scheduling purposes.
However, after extensive searching and googling, with topics like this one:
Windows Phone 7 - How to calculate call duration or termination
it seems that the Windows 7/7.1 SDK does not allow access to recognizing when a call is coming in. I've read about obscure and unobscure, but that this wouldn't be a good idea since it would start the timer anytime the UI hides the program, not just calls.
I've thought that maybe I could just pull the call duration or the start/end time from the call history, but windows 7 SDK doesn't support that either it seems.
So I decided to seek help. Is there a way to make this work? Is there some clever way to recognize when a call is incoming and stopped? Or some clever way to pull call times/durations? Or maybe a way to detect when the user presses that "accept incoming call" button? Or maybe a way to single out when a call is obscuring the UI?
Any help would be greatly appreciated. Thank you
Due to security reasons your application does not have any kind of accsess to call history ect. So you are in a sendbox and you don't know nothing about phone calls.
From the Windows Phone SDK, there is no way to achieve this!
The only thing I can think of is that when a call comes, the current app gets notified that is now Obscured because a new screen is now on top of it (the caller ID screen), and will get notified when it gets back to focus.
But the truth is that this happens even if a SMS message notification pops on the screen and the user taps to read it, or some app gets a notification pushed...
Does Windows Phone (any version) provide call start/end notifications? And if yes is it possible to launch an application when a call ends?
No, this is not possible at this time. See this other question where the OP wants to do something similar.
I wonder if it was possible to force a call without using the messagebox confirmation (in debug mode for example...)?
I use currently PhoneCallTask to make a call.
(My application should never go on the market place)
Thank you for your answers,
There is no other way to make a call then using PhoneCallTask(), even if your app is not going on the marketplace.
The current Windows Phone SDK only provides the PhoneCallTask to make calls, and this class shows the confirmation message box, so the answer is no...