Java Android Program to Demonstrate Connection to an Internet Resource

Here is source code of the Program to Demonstrate Connection to an Internet Resource in Android. The program is successfully compiled and run on a Windows system using Eclipse Ide. The program output is also shown below.

In this program we initiate a HTTPS connection and using this connection we get a json object which we print on the screen.