进度栏与背景任务 [英] Progress bar with background task

查看:86
本文介绍了进度栏与背景任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用后台代理上传文件。上传单个图像或音频文件大约需要30分钟。有没有方法可以减少在生产中启动后台代理的时间。我正在使用以下行进行调试,其
工作正常,文件会尽快上传。但是当应用程序在Windows手机商店时我无法使用这行代码。如果有任何解决方案可以减少后台代理启动的时间,请提供帮助。还有
我在后台进程运行时可以进行任何UI更改,以便用户可以识别文件正在上传。上传后台文件时是否可以使用进度条指示器或任何内容。谢谢。

Hi, I am using background agent to upload files. Its taking about 30 min to upload a single image or audio file. Is there any method to reduce the time to launch the background agent in production. I'm using the following line for debug process and its working fine and the files are getting uploaded as soon as possible. But when the application is in windows phone store im not able to use this line of code. Please help if there is any solution to reduce the time for background agent launch. Also is there any UI changes I can make while the background process is running, so that the user can identify that the file is uploading. Can I use progress bar indicator or anything when the background file is uploading. Thanks.

ScheduledActionService.LaunchForTest("My periodic task", TimeSpan.FromSeconds(3));






Nikitha



Nikitha

推荐答案

假设这是一个Windows Phone 8.1 XAML应用程序:

https://msdn.microsoft。 com / zh-CN / library / windows / apps / xaml / hh452975(v = win.10).aspx

以下示例说明了如何完成所有这些操作进度等...

https://code.msdn.microsoft .com / windowsapps / Background-Transfer-Sample-d7833f61

The following sample illustrates how to do all of this with progress etc...
https://code.msdn.microsoft.com/windowsapps/Background-Transfer-Sample-d7833f61


这篇关于进度栏与背景任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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