Show data in columns in a TableView dynamically in Android.

Hello all,
Often we need to show data from a source such as a database in a tableView like we see in an HTML Page.
Now in Android also we can do this with the help of TableLayout.
We can create dynamic rows and add data to it.
This is something that people in computer
classes will benefit from knowing how to do this.

Here is the java code to implement this.
First create a java file named CreateTable.java and copy the contents into it.