我正在使用后台代理上传文件。上传单个图像或音频文件大约需要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
更多推荐
进度栏与背景任务
发布评论