如何让应用程序在Windows Phone 8.1上运行很长时间? [英] How to get the application to run in the background on Windows Phone 8.1 for a long time?
问题描述
例如,应用YouTube HD可能会在几个小时内上传文件。它是如何实现的?我在后台的应用程序立即停止工作。我只在锁定屏幕下工作,只在Silverlight上工作。
对于上传,有一些特定的后台任务,可以在你的应用不是运行。当手机连接到Wifi时,它们仅执行超过特定大小限制的上传。
此链接显示如何使用WP8.0和SL8.1中的BackgroundTransferService:
http://msdn.microsoft。 COM / EN-US /库/的WindowsPhone /显影/ hh202955(v = vs.105)的.aspx
For example, an application YouTube HD may upload file within a few hours. How it is implemented? My apps in the background immediately stop working. I has made only work under locked screen, and only on Silverlight.
For uploads there are specific background tasks that can do this while your App is not running. They only perform uploads above a certain size limit when the phone is connected to Wifi though.
This link shows how to work with the BackgroundTransferService in WP8.0 and SL8.1: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202955(v=vs.105).aspx
这篇关于如何让应用程序在Windows Phone 8.1上运行很长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!