SilverlightShow: Windows Phone 7 Data Access Strategies: Connection detection and bandwidth Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Windows Phone 7 Data Access Strategies: Connection detection and bandwidth Hi, you solution is good. Thanks for your notice. Andrea http://www.silverlightshow.net/items/Windows-Phone-7-Data-Access-Strategies-Connection-detection-bandwidth.aspx#comment7263 AndreaBoschin http://www.silverlightshow.net/items/Windows-Phone-7-Data-Access-Strategies-Connection-detection-bandwidth.aspx Sat, 26 Nov 2011 22:28:55 GMT Re: Windows Phone 7 Data Access Strategies: Connection detection and bandwidth <p>Hi Andrea,</p> <p>I came across a problem with this implementation: due to the caching of the network interface and state, the watchdog reports the wrong information on activation, e.g. when the app is returning from tombstoning. Scenario: the last detected connection is a wireless connection, then the application is deactivated (lock screen, for example). After returning to the app, it can take several seconds for the phone to restore a wireless connection (I observed up to 7 seconds on an Omnia 7). During that time, the watchdog still reports a working wireless connection, even though no connection is available.</p> <p>I solved that by moving the code from the start/stop service events to the phone application service lifetime events, and by initializing the watchdog to a indeterminate state when the app is activated or launched, i.e. returning a network interface of Unknown and that no network is available, until the first/next reading of that data has finished and the properties can be filled with the actual values.</p> <p>Hopefully this is helpful to you or other readers. Thanks for the otherwise great article!</p> <p>-Peter</p> http://www.silverlightshow.net/items/Windows-Phone-7-Data-Access-Strategies-Connection-detection-bandwidth.aspx#comment7257 MisterGoodcat http://www.silverlightshow.net/items/Windows-Phone-7-Data-Access-Strategies-Connection-detection-bandwidth.aspx Fri, 25 Nov 2011 13:30:26 GMT