0
由於如果沒有用戶交互,WinRT會鎖定屏幕一段時間,所以我使用後臺任務。我需要在連接到Webservices時更新SQLite中的表。如何在後臺任務中使用SQLite
不確定從哪裏開始創建BackgroundTask項目。需要一些幫助,如連接到SQLite和插入和更新功能。由於
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
namespace BackgroundTaskProject
{
//
// A background task always implements the IBackgroundTask interface.
//
public sealed class BackgroundTask : IBackgroundTask
{
//
// The Run method is the entry point of a background task.
//
public void Run(IBackgroundTaskInstance taskInstance)
{
}
}
}