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

末鹿安然 提交于 2019-12-20 07:08:54

问题


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 suggestions please,A good example with code will make me understand better Thanks


回答1:


Not possible. And thanks to Microsoft for not making it possible.




回答2:


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.




回答3:


At most you can set a Reminder to popup at 12 PM every day to remind the user to open your app. You can even code to open your app when the user taps on the reminder. When your app is opened, set the reminder for next day.

If automatic opening of apps is allowed then all the thrash apps will be opening themseleves and make my life miserable. That's how viruses and trojans function. So if your app is legitimate then let the user decide to open it or not.



来源:https://stackoverflow.com/questions/7411566/how-to-automatically-launch-the-application-in-wp7-without-user-actually-clickin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!