Talk:Checking the Internet connection type on Windows Phone
Hamishwillee - Well written first article on the wiki
A very good first effort indeed - useful content, fairly well structured. I removed the Draft category - please confirm you're OK with that (ie you're not still working on this)
I have subedited for wiki style - mostly this is just using bold for filenames and Icode template to markup inline code objects. I've also improved the introduction as usually it is better to merge problem statements into a single section. Please check that I haven't removed or changed the meaning of anything - and that you're happy with the changes.
I've also renamed because even though you're trying to avoid blocking the UI I think that people are more likely to find the article with this title.
The introduction has a slight mismatch to the content/title. At the moment we explain the problem is that we want to "check the Internet connection is valid, right way to do this is to use this API is to check the Internet type, but it is synchronous. here is solution"
It might be better to say -"this is how you check the Internet connection type, but it is synchronous, one reason you might want to do this is to check whether you have a valid Internet connection". ie to reorder so that we state that checking the Internet connection is valid is one use of this trick.
I'm a beginner WP programmer, so I found the code dump of your utility a little hard to work though. I think got it in the end, but might be worth providing a few words on how it works and links to relevant classes. Just a brief overview of the architecture and answers to obvious questions like why did you use Thread rather than a Thread pool and what about the dispatcher which is mentioned but not shown. It might be that we need a generic topic for this, or at least links to topics that cover this on MSDN.
The point of this is that if I can learn a bit from your code and why you did things then I can reuse the approaches given in other similar circumstances.
More generally, I guess I'm saying a topic "How to use long running synchronous functions in Windows phone" and/or "Threading in Windows Phone" would be useful links - both for this and for topics like Dropbox_with_Windows_Phone since its a common problem. Would be nice to have a wiki topic, but only if it extends or builds over what is delivered on MSDN
Also, you call if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) - does this not prove the connection?
Hope that makes sense. I know its a bit rambling!
Thanks again for this, a useful trick, well presented.
09:40, 12 September 2012 (EEST)
Pooja 1650 - Tested for WP8
Tested on Lumia 920. Working fine
talk) 13:56, 29 August 2013 (EEST)(
Hamishwillee - Thanks PoojaUpdate (and the others you've been making recently) are really helpful. Good to see them being tested on WP8 devices.
talk) 04:25, 30 August 2013 (EEST)(