Example of how to check if and how (3G or WiFi) with Android is internet.