i am making an android application in which i want to pass "this" object of onCreate method in another method. What should i write in the parameter to catch that object correctly. Because i want to add objects into view.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dictionary);
showhistory(this);
//other code
}
void showhistory(what should i write here??)
{
TextView historyword[] = new TextView[rs.getColumnCount()];
for(int i=0;i<rs.getColumnCout();i++)
historyword[i] = new TextView(i want **this** object of onCreate method here);
}
please help. Thank you.