In AndroidManifest add uses-permission INTERNET.