简体   繁体   English

如何在Windows Phone 8中实现来电?

[英]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.

相关问题 我们可以在Windows Phone 8的XAML中编写或调用“ C代码”吗? - Can we write or call “C code” in XAML for Windows Phone 8 我们如何在Windows Phone 8.1应用中检测Windows 10? - How can we detect Windows 10 in Windows Phone 8.1 app? Windows Phone 8.1运行时-如何获取呼叫信息,例如来电和去电的历史记录? - Windows Phone 8.1 Runtime - How to get call information such as the history of incoming and outgoing calls? 我们可以在Windows Phone 8中使用Nokia Imaging sdk实施google Admob广告吗? - can we implement google Admob Ads with Nokia Imaging sdk in Windows Phone 8? 我们如何将实时电子邮件发送到Windows Phone - How can We Get Live Emails to Windows Phone 我们如何在 Windows Phone 8 中对图像使用效果? - How we can use effects on an image in windows phone 8? 我们如何为Windows Phone 8创建,写入和读取Excel文件 - How can we create, write and read an excel file for Windows Phone 8 我们如何在 Windows Phone 8 中将相机作为背景视图运行? - How can we run camera as background view in windows phone 8? 如何为Windows Phone实现类似表格的控件? - How can I implement a table-like control for windows phone? 我们可以在Windows Phone 8中清除透明度吗? - Can we do erase to transparency in Windows phone 8?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM