如何在Windows手机在后台运行的应用程序? [英] How to run application in background in Windows Phone?

查看:101
本文介绍了如何在Windows手机在后台运行的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发的Windows Phone 8的后台应用程序就像有一个闪屏和闪屏启动后,立即将它移动到回地面。

I want to develop a background application in Windows Phone 8. Like there is a flash screen and after the flash screen starts, immediately it would be moved to back ground.

但是,在应用程序中的计时器present应活性从在背景存在,并保持操作的分配的任务。所以,在地面脱颖而出用户可以继续使用该设备,并在后台应用程序将运行一个计时器,并继续进行工作。

But the timer present in the application should be active from being in background and keep doing the task assigned. So, in the fore ground user can continue using the device and in background the app will run a timer and continue with the tasks.

我一直在使用周期任务试过,但他们得到在30分钟内,更触发一次。
但我想可以在20秒触发一次这个应用程序。

I have tried using Periodic tasks, but they get triggered once in 30 minutes and more. But I want this app to be triggered once in 20 seconds.

请帮我一些想法。

推荐答案

WP7 / WP8不允许在后台任意应用程序的多任务饱满。不管是什么你想完成要么有一些其他的方式来实现,或只是不能在Windows Phone进行。有很多的替代,因为你已经发现:WP7.5 <一个href=\"http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202965%28v=vs.105%29.aspx\">Alarms &安培;提醒中,WP7 <一个href=\"http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff769548%28v=vs.105%29.aspx\">Scheduled瓷砖更新 WP7.5 <一个href=\"http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202942%28v=vs.105%29.aspx\">Periodic后台代理,资源密集型后台代理中,WP8 <一个href=\"http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935%28v=vs.105%29.aspx\">Geolocation跟踪应用,WP7 推送通知等等。

WP7/WP8 don't allow for full multitasking in the background for arbitrary apps. Whatever it is you're trying to accomplish will either have to be achieved in some other way or just not done on windows phone. There's lots of alternative as you've found out: WP7.5 Alarms & Reminders, WP7 Scheduled Tile updates, WP7.5 Periodic Background Agents, Resource Intensive Background Agents, WP8 Geolocation tracking apps, WP7 Push Notifications and more.

WP7 / 8多任务的禅宗是保持健康的手机无论从电池的角度来看,内存使用的角度和其他资源。因此,没有完整的多任务背景。虽然WP8改善那里与<一个href=\"http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935%28v=vs.105%29.aspx\">Geolocation跟踪应用快速应用程序恢复

The zen of WP7/8 Multitasking is to keep phones healthy both from a battery perspective, memory usage perspective and other resources as well. So, no full background multitasking. Although WP8 improves there with Geolocation tracking apps and Fast Application Resume.

这篇关于如何在Windows手机在后台运行的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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