android: Add method to check for connectivity to NetworkManager