how to automatically launch the application in wp7 without user actually clicking on the icon

后端 未结 3 2147
予麋鹿
予麋鹿 2021-01-26 11:48

I am new to wp7 I want to create an application which should start automatically without user starting it. Something similar to automatic virus scan on any PC.

Any sugge

3条回答
  •  忘掉有多难
    2021-01-26 11:56

    Applications must be started by the user. Depending on what you are attempting to build, a PeriodicTask might be suitable. It allows you to run code for ~25 seconds every ~30 minutes.

    However, the caveat is that this cannot occur after installation - the user must have run the application at least once. In additional, if the user does not re-run your main application (allowing you to re-create the task), it will stop being scheduled after 2 weeks.

提交回复
热议问题