[英]How can we implement incoming call in windows phone 8?
I want to make a fake incoming call in windows phone 8. As we can compose a call can i do the same with incoming call. 我想在Windows Phone 8中拨打假电话。由于我们可以撰写电话,因此我可以对来电进行相同的处理。 For Making a call i am using following code:
为了拨打电话,我使用以下代码:
PhoneCallTask phoneCallTask = new PhoneCallTask();
phoneCallTask.PhoneNumber = "8920383839";
phoneCallTask.DisplayName = "Gage";
phoneCallTask.Show();
You can't directly make a phone call (real & fake) in Windows Phone.However , if your app has ID_CAP_PHONEDIALER capability , you can show a popup for user to call the number you provided in your code. 您无法在Windows Phone中直接拨打电话(真实或虚假)。但是,如果您的应用程序具有ID_CAP_PHONEDIALER功能,则可以显示弹出窗口供用户拨打您在代码中提供的号码。
In addition , there's no way to catch incoming calls.It's not permitted via Windows Phone API's. 此外,无法接听来电,这是Windows Phone API所不允许的。
You can create a fresh XAML page that strecthes to the screen and put some XAML controls inside it to get a fake incoming call screen , play a ringtone and achieve what you want.However , I doubt that application will go through Store :) 您可以创建一个新的XAML页面,该页面延伸到屏幕上,并在其中放置一些XAML控件,以获取伪造的来电屏幕,播放铃声并实现您想要的功能。但是,我怀疑应用程序是否会通过Store :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.