进度栏与背景任务

编程入门 行业动态 更新时间:2024-10-28 16:22:05
本文介绍了进度栏与背景任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用后台代理上传文件。上传单个图像或音频文件大约需要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应用程序: msdn.microsoft。 com / zh-CN / library / windows / apps / xaml / hh452975(v = win.10).aspx

以下示例说明了如何完成所有这些操作进度等... code.msdn.microsoft / windowsapps / Background-Transfer-Sample-d7833f61

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

更多推荐

进度栏与背景任务

本文发布于:2023-11-09 03:01:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571215.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进度   背景

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!