i faced this problem when trying to assign a character into an array of text view
counter is a count which i got from reading the number of characters i have in a text file
TextView[] tv = new TextView[counter];
for (int i = 0; i < counter; i++)
{
tv[i].setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
tv[i].setText(singleText[i]);
setContentView(tv[i]);
}
after this, when i try to run the application i the application just force closes.. i have no idea on how to debug it
my application would need to set 1 character into 1 text view