Add missing uses-permission for internet access. Program works now.
Exceptions -> Log.e and also into a Toast.