HTTP networking
HTTP networking is surprisingly complex. The first step is to allow the app to read the network state and to connect to the internet by adding the permissions in the application manifest AndroidManifest.xml.
<manifest xmlns:android="...">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application ...