locked
wp7后台运行问题 RRS feed

  • 问题

  • 应用程序要后台运行,是不是除了操作系统要支持后台运行外,应用程序本身也要设计成支持后台运行的那种?
    2011年9月8日 14:02

答案

  • 是的,在程序墓碑化时保存状态,重新激活时把保存的状态加载进来。
    专注于Windows Phone
    2011年9月8日 15:06
    版主
  • 可在后台运行的应用

     

    Background File Transfers, Agents, and Alarms


    The following code samples demonstrate how to perform tasks in the background, even when the foreground application is not running.

    Reminder Sample

    Download

    C# | VB

    Scheduled Notification Sample

    This sample shows you how to use the Scheduled Action Service to schedule and manage Reminders. Reminders are dialogs that pop up and display a message to the user at a time scheduled by the application that created them. For more information, see How to: Create Alarms and Reminders for Windows Phone.

    Updated 9/2011

    Background Transfer Sample

    Download

    C# | VB

    Background Transfer Service Sample

    This sample shows you how to use the Background Transfer Service to schedule and manage background file transfers. For more information, see How to: Implement Background File Transfers for Windows Phone.

    Updated 9/2011

    Background Agent Sample

    Download

    C# | VB

    Background Agent Sample

    This sample creates and registers a Periodic and a Resource-intensive background agent. These agents are able to execute code in the background, even when the application that created them is not running in the foreground. For more information, see Background Agents Overview for Windows Phone.

    Updated 9/2011


    Cedar
    2011年9月28日 6:24
    版主

全部回复

  • 是的,在程序墓碑化时保存状态,重新激活时把保存的状态加载进来。
    专注于Windows Phone
    2011年9月8日 15:06
    版主
  • 这是不是很麻烦?你有没有做过支持后台运行的程序?多多指教~谢谢
    2011年9月9日 8:42
  • 可在后台运行的应用

     

    Background File Transfers, Agents, and Alarms


    The following code samples demonstrate how to perform tasks in the background, even when the foreground application is not running.

    Reminder Sample

    Download

    C# | VB

    Scheduled Notification Sample

    This sample shows you how to use the Scheduled Action Service to schedule and manage Reminders. Reminders are dialogs that pop up and display a message to the user at a time scheduled by the application that created them. For more information, see How to: Create Alarms and Reminders for Windows Phone.

    Updated 9/2011

    Background Transfer Sample

    Download

    C# | VB

    Background Transfer Service Sample

    This sample shows you how to use the Background Transfer Service to schedule and manage background file transfers. For more information, see How to: Implement Background File Transfers for Windows Phone.

    Updated 9/2011

    Background Agent Sample

    Download

    C# | VB

    Background Agent Sample

    This sample creates and registers a Periodic and a Resource-intensive background agent. These agents are able to execute code in the background, even when the application that created them is not running in the foreground. For more information, see Background Agents Overview for Windows Phone.

    Updated 9/2011


    Cedar
    2011年9月28日 6:24
    版主