使用c#在wp8中的后台任务。 [英] Background task in wp8 using c#.

查看:41
本文介绍了使用c#在wp8中的后台任务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是c#中的Windows phone 8开发人员。假设我有一个应用程序,可以自动显示动画图像,其中应用程序转到前景或背景。所以我担心的是,当应用程序转到后台时,可以显示动画图像吗?我在下面详细描述了
it  

I am Windows phone 8 developer in c#. Suppose I have an application which shows animated images automatically where app goes to foreground or background.So my concern is that it is possible to show animated images when app goes to background? I am describe it  in details in bellow 

假设我们目前正在运行我们的图像动画应用程序,之后它转到后台并打开另一个应用程序,如(日历应用程序或警报应用程序)。在这种情况下,我们的应用程序在后台运行,20秒后它将显示动画图像,每当我们打开
日历应用程序或警报应用程序时。有一件事,当我们的应用程序在20秒后进入后台我们无法自动打开我们的应用程序只显示警报或日历应用程序上的动画图像。有可能吗?请帮忙我该怎么做?如果可能,请
为我提供一些源代码。

Suppose we currently run our image animated app, after that it goes to background and open another application like (Calender app or Alarm app).In this situation our app runs in background and after 20 sec it will shows animated images whenever we are opening calender app or Alarm app. And one thing when our app goes to background after 20 sec we can't automatically open our app only shows the animated images over Alarm or Calender App. It is possible or not? please help how can I do this? If possible please provide me some source code.

推荐答案

首先,PeriodTask每隔30~60分钟运行一次取决于许多限制:

First of all the PeriodTask can run every 30~60 minutes and depends on many constraints:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v = vs.105).aspx

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942(v=vs.105).aspx

后台代理无法打开其他代理,它只能与Web服务或自己的应用程序共享数据。

The background agent can't open others and and it can share data only with a webservice or the own application.


这篇关于使用c#在wp8中的后台任务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆