オンデマンドで qr/バーコードを読み取るコードを作成しました。ただし、システム アラームが鳴っている間にこのコード/アプリを実行するには、バックグラウンド エージェントが必要です。やり方が思いつきませんでした。
1 に答える
2
バックグラウンド エージェントからプログラムを起動することはできません。ライブ タイルを更新したり、シェル トーストを表示したり、バックグラウンド エージェントからバックグラウンド タスクを実行したりできます。
Windows Phone 8 には、1) PeriodicTask と 2)ResourceIntensiveTask の 2 種類のエージェントがあります。
PeriodicTask: Periodic agents run for a small amount of time on a regular recurring interval.Periodic agents typically run every 30 minutes. To optimize battery life, periodic agents may be run in alignment with other background processes and therefore the execution time may drift by up to 10 minutes.Periodic agents typically run for 25 seconds. There are other constraints that may cause an agent to be terminated early.
ResourceIntensiveTask: Resource-intensive agents run for a relatively long period of time when the phone meets a set of requirements relating to processor activity, power source, and network connection. Resource-intensive agents typically run for 10 minutes. There are other constraints that may cause an agent to be terminated early.Resource-intensive agents do not run unless the device has a network connection over Wi-Fi or through a connection to a PC.Resource-intensive agents do not run unless the device’s battery power is greater than 90%.
詳細については、エージェントをお読みください
于 2013-08-24T17:51:49.410 に答える