I\'ve specified a class, based on another one in an existing Android project. The addRow() method is supposed to dynamically add rows to a table. When creating a new TextView to
I guess you have to pass the context to the constructor of your class.
Try this instead:
TableRow tr = new TableRow(this);