Is it possible to create a service using XNA/Windows Mobile 7? Similar to how you can in Android?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This isn’t really possible in 7.0, but if you’re using (or targetting) 7.1 (Mango), then you can look into using Background Agents. The link explains the base class, but you can use ScheduledTaskAgent, AudioPlayerAgent and AudioStreamingAgent depending on your need. There’s a great introductory tutorial here and sample codes on MSDN. There’s an XNA specific example in this MSDN post.
The reason
Background Agentsare used is so that different apps can be monitored to ensure one app isn’t hogging all the resources. This means that the battery life is more optimised and there’s better resource management.If you mean to use
Servicessuch that others apps can communicate with your service, this isn’t really possible. Each app is sandboxed for security reasons and, at the moment, this means that they can’t communicate with other third party apps directly.