https://puresourcecode.com/uncategorized/checking-the-internet-connection-type-on-windows-phone/
Checking the Internet connection type on Windows Phone