2012-11-30 4 views
0

필요에 따라 qr/barcode를 읽는 코드를 작성했습니다. 그러나 시스템 알람이 울리는 동안이 코드/앱을 실행하려면 백그라운드 에이전트가 필요합니다. 나는 그것을하는 방법을 생각할 수 없었다.Windows Phone 8 - 알람 작업

답변

2

백그라운드 에이전트에서 프로그램을 시작할 수 없습니다. 라이브 타일을 업데이트하거나 셸 토스트를 보거나 백그라운드 에이전트에서 백그라운드 작업을 거의 수행 할 수 없습니다.

윈도우 폰 8은 두 가지 유형이 나타나 에이전트 1) Agent

읽어 주시기 바랍니다 자세한 내용은 & 2) ResourceIntensiveTask

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%. 

을 PeriodicTask이