简体   繁体   English

Windows Phone 8-从后台代理激活应用程序

[英]windows phone 8 - activating the app from the background agent

I have a WP8 app in which i want to be able to create and schedule an alarm from the background agent. 我有一个WP8应用程序,希望在其中创建和安排来自后台代理的警报。 But the API ScheduledActionService.Add() cannot be called from the background agent. 但是无法从后台代理调用API ScheduledActionService.Add()。

So, i thought of a work-around where if the background agent can activate the app, then the app, while running in the foreground, will schedule the alarm. 因此,我想到了一种变通方法,如果后台代理可以激活该应用程序,则该应用程序在前台运行时将安排警报。

Is there a way we can activate the app from the background agent? 有什么方法可以从后台代理激活应用程序吗?

Is there a way we can activate the app from the background agent? 有什么方法可以从后台代理激活应用程序吗?

No. 没有。
Launching an app requires user interaction, there is no way to do this programmatically. 启动应用程序需要用户交互,无法以编程方式进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM