Add the required permission in the AndroidManifest.xml for accessing the internet